, _userTriggeredConnect(false)
, _debugMode(false)
, _backgroundMode(false)
- , _isQuitting(false)
{
_startedAt.start();
}
// Remove the account from the account manager so it can be deleted.
+ disconnect(AccountManager::instance(), &AccountManager::accountRemoved,
+ this, &Application::slotAccountStateRemoved);
AccountManager::instance()->shutdown();
}
}
// if there is no more account, show the wizard.
- if (!_isQuitting && AccountManager::instance()->accounts().isEmpty()) {
+ if (AccountManager::instance()->accounts().isEmpty()) {
// allow to add a new account if there is non any more. Always think
// about single account theming!
OwncloudSetupWizard::runWizard(this, SLOT(slotownCloudWizardDone(int)));
void Application::slotCleanup()
{
- _isQuitting = true;
-
AccountManager::instance()->save();
FolderMan::instance()->unloadAndDeleteAllFolders();