Skip to content

Commit

Permalink
Ignores: Sync after update #3876
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Oct 1, 2015
1 parent d8c5e58 commit 7bf31e5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/gui/ignorelisteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7bf31e5

Please sign in to comment.