L: only renumber tracks after track DnD if we passed the move threshold
This commit is contained in:
parent
34cc408ebb
commit
b79e17f8a2
@ -7282,15 +7282,18 @@ Editor::end_track_drag ()
|
||||
gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor);
|
||||
}
|
||||
|
||||
bool did_move = !track_drag->first_move;
|
||||
|
||||
delete track_drag;
|
||||
track_drag = nullptr;
|
||||
|
||||
/* the suspender was deleted with track_drag, now catch up on any track
|
||||
numbering and side effects
|
||||
*/
|
||||
|
||||
if (did_move) {
|
||||
_session->update_track_numbers ();
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
Editor::track_dragging() const
|
||||
|
Loading…
Reference in New Issue
Block a user