[Pkg-owncloud-commits] [owncloud-client] 331/498: AccountSettings: When adding a new folder, set ignore hidden flag.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:03 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 a5528b7cd4e273b105da2984ec2631422a35ea2b
Author: Klaas Freitag <freitag at owncloud.com>
Date: Wed Jul 15 14:51:37 2015 +0200
AccountSettings: When adding a new folder, set ignore hidden flag.
The value is taken from existing folder definitions, or defaults to true.
---
src/gui/accountsettings.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 6bf8fd4..f00d847 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -192,6 +192,17 @@ void AccountSettings::slotFolderWizardAccepted()
definition.alias = folderWizard->field(QLatin1String("alias")).toString();
definition.localPath = folderWizard->field(QLatin1String("sourceFolder")).toString();
definition.targetPath = folderWizard->property("targetPath").toString();
+
+ bool ignoreHidden = true;
+ /* take the value from the definition of already existing folders. All folders have
+ * the same setting so far, that's why it's ok to check the first one.
+ * The default is to not sync hidden files
+ */
+ if( folderMan->map().count() > 0) {
+ ignoreHidden = folderMan->map().first()->ignoreHiddenFiles();
+ }
+ definition.ignoreHiddenFiles = ignoreHidden;
+
auto selectiveSyncBlackList = folderWizard->property("selectiveSyncBlackList").toStringList();
folderMan->setSyncEnabled(true);
--
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