From: Christian Kamm Date: Wed, 9 Dec 2015 10:41:43 +0000 (+0100) Subject: Force account wizard when last account is deleted #4266 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1387^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3de8f27a02acac14c76648186f0b0fcf9968385f;p=nextcloud-desktop.git Force account wizard when last account is deleted #4266 --- diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index 5662c1323..6caa38c33 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -229,6 +229,13 @@ void SettingsDialog::accountRemoved(AccountState *s) } _activitySettings->slotRemoveAccount(s); + + // Hide when the last account is deleted. We want to enter the same + // state we'd be in the client was started up without an account + // configured. + if (AccountManager::instance()->accounts().isEmpty()) { + hide(); + } } void SettingsDialog::customizeStyle()