[Pkg-owncloud-commits] [owncloud-client] 17/171: Force account wizard when last account is deleted #4266
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit 3de8f27a02acac14c76648186f0b0fcf9968385f
Author: Christian Kamm <mail at ckamm.de>
Date: Wed Dec 9 11:41:43 2015 +0100
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 5662c13..6caa38c 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()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list