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
This commit is contained in:
Olivier Goffart 2015-04-27 17:14:25 +02:00
parent 23dc464ea2
commit ac855858de
2 changed files with 3 additions and 2 deletions

View file

@ -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();

View file

@ -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();