From: Hannah von Reth Date: Fri, 3 Jul 2020 08:02:53 +0000 (+0200) Subject: Gui: Don't try to display the wizard during shutdown X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~88 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fb34f8ea8504df769cb4032b20c92fed5a7b5f8f;p=nextcloud-desktop.git Gui: Don't try to display the wizard during shutdown Fixes: #7936 --- 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)));