mainwindow: remove timeline from "main time panels" when destroyed

Fixes potential crash with multiple sequences
This commit is contained in:
itsmattkc
2022-10-04 20:52:38 -07:00
parent 783d9af864
commit c173bcad2a
+3 -1
View File
@@ -555,7 +555,9 @@ void MainWindow::UpdateTitle()
void MainWindow::TimelineCloseRequested()
{
RemoveTimelinePanel(static_cast<TimelinePanel*>(sender()));
TimelinePanel *t = static_cast<TimelinePanel*>(sender());
RemoveTimelinePanel(t);
main_time_panels_.removeOne(t);
}
void MainWindow::ProjectCloseRequested()