From 3de8f27a02acac14c76648186f0b0fcf9968385f Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 9 Dec 2015 11:41:43 +0100 Subject: [PATCH] Force account wizard when last account is deleted #4266 --- src/gui/settingsdialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.30.2