2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix build for OS X 10.6-10.7.

Qt 5.3.2 doesn't support QTimer::singleShot(delay, lambda).
This commit is contained in:
John Preston
2017-04-11 18:44:11 +03:00
parent b736d45bc4
commit d4af14041c
5 changed files with 6 additions and 9 deletions

View File

@@ -2466,9 +2466,6 @@ namespace {
if (auto apiwrap = api()) {
if (apiwrap->hasUnsavedDrafts()) {
apiwrap->saveDraftsToCloud();
QTimer::singleShot(SaveDraftBeforeQuitTimeout, [] {
QCoreApplication::quit();
});
return;
}
}