Gui: Don't try to display the wizard during shutdown
authorHannah von Reth <hannah.vonreth@owncloud.com>
Fri, 3 Jul 2020 08:02:53 +0000 (10:02 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:14 +0000 (10:59 +0100)
Fixes: #7936
src/gui/application.cpp

index af5040b4b416fbbe658d7b0b034c1db382fcffd7..b44c37fdccbb47019fcba840560684d720dcfaea 100644 (file)
@@ -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)));