diff --git a/src/gui/application.cpp b/src/gui/application.cpp index af5040b4b..b44c37fdc 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -404,7 +404,7 @@ void Application::slotAccountStateRemoved(AccountState *accountState) } // if there is no more account, show the wizard. - if (AccountManager::instance()->accounts().isEmpty()) { + if (_gui && 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)));