From ac855858de3c616873da3da1f4b99247c650f200 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 27 Apr 2015 17:14:25 +0200 Subject: [PATCH] owncloud gui: move a comment where it belongs The code was moved long time ago in commit ea1c95100 but the comment stayed. I have no idea if the comment is still accurate --- src/gui/application.cpp | 2 -- src/gui/owncloudgui.cpp | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index e347cc13f..722139cc1 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -228,8 +228,6 @@ void Application::slotAccountStateAdded(AccountState *accountState) void Application::slotCleanup() { - // explicitly close windows. This is somewhat of a hack to ensure - // that saving the geometries happens ASAP during a OS shutdown AccountManager::instance()->save(); FolderMan::instance()->unloadAndDeleteAllFolders(); diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 0e9509d68..1c172c6ad 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -567,6 +567,9 @@ void ownCloudGui::slotShowSyncProtocol() void ownCloudGui::slotShutdown() { + // explicitly close windows. This is somewhat of a hack to ensure + // that saving the geometries happens ASAP during a OS shutdown + // those do delete on close if (!_settingsDialog.isNull()) _settingsDialog->close(); if (!_logBrowser.isNull()) _logBrowser->deleteLater();