From 9001e004e48be95ba510e385d2ad959eea487163 Mon Sep 17 00:00:00 2001 From: wolfseifert <56782910+wolfseifert@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:37:12 +0100 Subject: [PATCH] Update MainWindow.cpp delete-timeline-causes-crash-on-windows-#680 --- src/ui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp index ed04212be..bead329b2 100644 --- a/src/ui/MainWindow.cpp +++ b/src/ui/MainWindow.cpp @@ -201,7 +201,7 @@ void MainWindow::setSideBarVisible(bool visible) { splitter->setSizes({static_cast(pos * value), 1}); }); - connect(timeline, &QTimeLine::finished, [timeline] { delete timeline; }); + connect(timeline, &QTimeLine::finished, [timeline] { timeline->deleteLater(); }); timeline->start(); }