Skip to content

Commit

Permalink
Update MainWindow.cpp
Browse files Browse the repository at this point in the history
delete-timeline-causes-crash-on-windows-Murmele#680
  • Loading branch information
wolfseifert authored Feb 8, 2024
1 parent fbb4867 commit 9001e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void MainWindow::setSideBarVisible(bool visible) {
splitter->setSizes({static_cast<int>(pos * value), 1});
});

connect(timeline, &QTimeLine::finished, [timeline] { delete timeline; });
connect(timeline, &QTimeLine::finished, [timeline] { timeline->deleteLater(); });

timeline->start();
}
Expand Down

0 comments on commit 9001e00

Please sign in to comment.