Add 'controls' item to plugin insert context menu to always show Ardour generated...
[ardour.git] / gtk2_ardour / editor_drag.cc
index e1c73321334b6a775311106c4da614e418d3ebe7..1784e59944ad0ab13ba5d4a6290115857dc37811 100644 (file)
@@ -92,9 +92,11 @@ DragManager::abort ()
                delete *i;
        }
 
-       _drags.clear ();
+       if (!_drags.empty ()) {
+               _editor->set_follow_playhead (_old_follow_playhead, false);
+       }
 
-       _editor->set_follow_playhead (_old_follow_playhead, false);
+       _drags.clear ();
        
        _ending = false;
 }
@@ -869,9 +871,9 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed
        }
 
        if (_x_constrained) {
-               _editor->begin_reversible_command (_("fixed time region copy"));
+               _editor->begin_reversible_command (Operations::fixed_time_region_copy);
        } else {
-               _editor->begin_reversible_command (_("region copy"));
+               _editor->begin_reversible_command (Operations::region_copy);
        }
 
        /* insert the regions into their new playlists */
@@ -3184,8 +3186,6 @@ TimeFXDrag::finished (GdkEvent* /*event*/, bool movement_occurred)
        }
 #endif
 
-       _editor->begin_reversible_command (_("timestretch"));
-
        // XXX how do timeFX on multiple regions ?
 
        RegionSelection rs;