Update RepoView.cpp

delete-timeline-causes-crash-on-windows-#680
This commit is contained in:
wolfseifert 2024-02-08 15:38:37 +01:00 committed by GitHub
parent 9001e004e4
commit cfc90cd683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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