diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-19 17:38:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-19 17:38:56 +0000 |
commit | 1e8586742e48f56bb81fa14c50442cec23894dfd (patch) | |
tree | 717797af5e3e87e67a1356e14a5d74520cbbd904 /gtk2_ardour/editor_drag.cc | |
parent | 074d58fc6f97c225e804d32b5d2b8f09e4d512da (diff) |
Fix session range location by hooking into the undo system. Fixes #3654.
git-svn-id: svn://localhost/ardour2/branches/3.0@8539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 014b91bb61..24182397c3 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -32,6 +32,8 @@ #include "ardour/session.h" #include "ardour/dB.h" #include "ardour/region_factory.h" +#include "ardour/operations.h" + #include "editor.h" #include "i18n.h" #include "keyboard.h" @@ -905,7 +907,7 @@ RegionMoveDrag::finished_no_copy ( if (_x_constrained) { _editor->begin_reversible_command (_("fixed time region drag")); } else { - _editor->begin_reversible_command (_("region drag")); + _editor->begin_reversible_command (Operations::region_drag); } for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ) { @@ -1227,7 +1229,7 @@ RegionInsertDrag::finished (GdkEvent *, bool) boost::shared_ptr<Playlist> playlist = dest_rtv->playlist(); - _editor->begin_reversible_command (_("insert region")); + _editor->begin_reversible_command (Operations::insert_region); playlist->clear_changes (); playlist->add_region (_primary->region (), _last_frame_position); _editor->session()->add_command (new StatefulDiffCommand (playlist)); |