13
0

L: only renumber tracks after track DnD if we passed the move threshold

This commit is contained in:
Paul Davis 2024-05-21 11:18:57 -06:00
parent 34cc408ebb
commit b79e17f8a2

View File

@ -7282,15 +7282,18 @@ Editor::end_track_drag ()
gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor); 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; delete track_drag;
track_drag = nullptr; track_drag = nullptr;
/* the suspender was deleted with track_drag, now catch up on any track /* the suspender was deleted with track_drag, now catch up on any track
numbering and side effects numbering and side effects
*/ */
if (did_move) {
_session->update_track_numbers (); _session->update_track_numbers ();
} }
}
bool bool
Editor::track_dragging() const Editor::track_dragging() const