Gui: Don't try to display the wizard during shutdown

Fixes: #7936
This commit is contained in:
Hannah von Reth 2020-07-03 10:02:53 +02:00 committed by Kevin Ottens
parent 4f8928d35e
commit fb34f8ea85
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View 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)));