mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 02:35:41 +03:00
Merge pull request #693 from wolfseifert/delete-timeline-causes-crash-on-windows-#680
Delete timeline causes crash on windows #680
This commit is contained in:
commit
d37a32fddb
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user