summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-06 18:02:36 -0500
committerDavid Robillard <d@drobilla.net>2014-12-06 22:43:06 -0500
commit2ea4ae603aa02f7626a1ecfa15c8ec1ce474b352 (patch)
tree5081eead8fac0d9c49ab745c341e907d49724314 /gtk2_ardour/editor_ops.cc
parent09bd88c9df88a070a2cd98a223668c23333142a1 (diff)
Fix crash on shift+rclick of region to remove.
This doesn't seem to have been touched for years, and I don't see how such an obvious bug could possibly have been around for so long, but, well, this fixes it as far as I can tell.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 69fcf67d16..4d4176d421 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -4041,6 +4041,8 @@ Editor::remove_clicked_region ()
return;
}
+ begin_reversible_command (_("remove region"));
+
boost::shared_ptr<Playlist> playlist = clicked_routeview->playlist();
playlist->clear_changes ();