From d997bdb31d42e454d4f2fb0a542624fdfc6bb19e Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 22 Jan 2019 14:33:01 +1100 Subject: [PATCH] clip delete cleanup --- panels/timeline.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/panels/timeline.cpp b/panels/timeline.cpp index 01900b8f7..630c943a4 100644 --- a/panels/timeline.cpp +++ b/panels/timeline.cpp @@ -580,8 +580,6 @@ void Timeline::delete_selection(QVector& selections, bool ripple_dele } } - selections.clear(); - undo_stack.push(ca); update_ui(true); @@ -839,8 +837,15 @@ void Timeline::delete_areas_and_relink(ComboAction* ca, QVector& area } } } + } + + // deselect selected clip areas + QVector area_copy = areas; + for (int i=0;iappend(new AddClipCommand(sequence, post_clips)); }