From fb34f8ea8504df769cb4032b20c92fed5a7b5f8f Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Fri, 3 Jul 2020 10:02:53 +0200 Subject: [PATCH] Gui: Don't try to display the wizard during shutdown Fixes: #7936 --- src/gui/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)));