Delete timeline causes crash on windows #680
This commit is contained in:
Murmele 2024-02-20 14:04:13 +01:00 committed by GitHub
commit d37a32fddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -201,7 +201,8 @@ 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();
}

View File

@ -890,7 +890,8 @@ void RepoView::setLogVisible(bool visible) {
setSizes({1, static_cast<int>(pos * value)});
});
connect(timeline, &QTimeLine::finished, [timeline] { delete timeline; });
connect(timeline, &QTimeLine::finished,
[timeline] { timeline->deleteLater(); });
timeline->start();
}