Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2015-10-01 16:39:28 +0300
committerChristian Kamm <mail@ckamm.de>2015-10-01 16:39:28 +0300
commit7bf31e56ab75310ad795e7ee5ceab75642ee38b0 (patch)
treea839cf0fcddbcfa91affb91cf9c6ec62fb09b97b /src/gui/ignorelisteditor.cpp
parentd8c5e58fa1515a2bd3451e55d3a22ed153fb2c8e (diff)
Ignores: Sync after update #3876
Diffstat (limited to 'src/gui/ignorelisteditor.cpp')
-rw-r--r--src/gui/ignorelisteditor.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/gui/ignorelisteditor.cpp b/src/gui/ignorelisteditor.cpp
index 508062bdb..92e5df7f2 100644
--- a/src/gui/ignorelisteditor.cpp
+++ b/src/gui/ignorelisteditor.cpp
@@ -105,25 +105,27 @@ void IgnoreListEditor::slotUpdateLocalIgnoreList()
ignores.write(prepend+patternItem->text().toUtf8()+'\n');
}
}
-
- // We need to force a remote discovery after a change of the ignore list.
- // Otherwise we would not download the files/directories that are no longer
- // ignored (because the remote etag did not change) (issue #3172)
- foreach (Folder* folder, FolderMan::instance()->map()) {
- folder->journalDb()->forceRemoteDiscoveryNextSync();
- }
-
} else {
QMessageBox::warning(this, tr("Could not open file"),
tr("Cannot write changes to '%1'.").arg(ignoreFile));
}
+ FolderMan * folderMan = FolderMan::instance();
+
/* handle the hidden file checkbox */
/* the ignoreHiddenFiles flag is a folder specific setting, but for now, it is
* handled globally. Save it to every folder that is defined.
*/
- FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles());
+ folderMan->setIgnoreHiddenFiles(ignoreHiddenFiles());
+
+ // We need to force a remote discovery after a change of the ignore list.
+ // Otherwise we would not download the files/directories that are no longer
+ // ignored (because the remote etag did not change) (issue #3172)
+ foreach (Folder* folder, folderMan->map()) {
+ folder->journalDb()->forceRemoteDiscoveryNextSync();
+ folderMan->slotScheduleSync(folder);
+ }
}
void IgnoreListEditor::slotAddPattern()