[Pkg-owncloud-commits] [owncloud-client] 10/69: Wizard: show the choice to start a clean sync if the directory exist even on new accounts
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 7 19:41:06 UTC 2014
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 ce300d88eecd7e79baecc925efd387d30600e244
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Mon Oct 27 13:04:23 2014 +0100
Wizard: show the choice to start a clean sync if the directory exist even on new accounts
Task #2406
---
src/wizard/owncloudadvancedsetuppage.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wizard/owncloudadvancedsetuppage.cpp b/src/wizard/owncloudadvancedsetuppage.cpp
index f318ba3..4a38bb6 100644
--- a/src/wizard/owncloudadvancedsetuppage.cpp
+++ b/src/wizard/owncloudadvancedsetuppage.cpp
@@ -152,7 +152,8 @@ bool OwncloudAdvancedSetupPage::dataChanged()
Account *oldAccount = AccountManager::instance()->account();
if (!ocWizard || !oldAccount) {
- return false;
+ // If there was no account configured before, the data is new (hence changed)
+ return true;
}
const QString url(field("OCUrl").toString());
--
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