, _userTriggeredConnect(false)
, _debugMode(false)
, _backgroundMode(false)
+ , _isQuitting(false)
{
_startedAt.start();
}
// if there is no more account, show the wizard.
- if (AccountManager::instance()->accounts().isEmpty()) {
+ if (!_isQuitting && 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();