[Pkg-owncloud-commits] [owncloud-client] 06/120: AccountSettings: Show the wizard to add an account when the last account was deleted #3564
Sandro Knauß
hefee-guest at moszumanska.debian.org
Mon Aug 24 00:02:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 8b52a121bb60533059d67b6e94e5015b14204161
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Fri Aug 7 13:14:33 2015 +0200
AccountSettings: Show the wizard to add an account when the last account was deleted #3564
---
src/gui/accountsettings.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 335aef3..e8a0c34 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -27,6 +27,7 @@
#include "accountstate.h"
#include "quotainfo.h"
#include "accountmanager.h"
+#include "owncloudsetupwizard.h"
#include "creds/abstractcredentials.h"
#include <math.h>
@@ -529,6 +530,12 @@ void AccountSettings::slotDeleteAccount()
auto manager = AccountManager::instance();
manager->deleteAccount(_accountState);
manager->save();
+
+ // if there is no more account, show the wizard.
+ if( manager->accounts().isEmpty() ) {
+ OwncloudSetupWizard::runWizard(qApp, SLOT(slotownCloudWizardDone(int)));
+ }
+
}
bool AccountSettings::event(QEvent* e)
--
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