From c173bcad2a36e3e5dc81122197dc5aba4f1c75d1 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 4 Oct 2022 20:52:38 -0700 Subject: [PATCH] mainwindow: remove timeline from "main time panels" when destroyed Fixes potential crash with multiple sequences --- app/window/mainwindow/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/window/mainwindow/mainwindow.cpp b/app/window/mainwindow/mainwindow.cpp index 79b589901..20adf7800 100644 --- a/app/window/mainwindow/mainwindow.cpp +++ b/app/window/mainwindow/mainwindow.cpp @@ -555,7 +555,9 @@ void MainWindow::UpdateTitle() void MainWindow::TimelineCloseRequested() { - RemoveTimelinePanel(static_cast(sender())); + TimelinePanel *t = static_cast(sender()); + RemoveTimelinePanel(t); + main_time_panels_.removeOne(t); } void MainWindow::ProjectCloseRequested()