Ignore ui: Add the sync journal patterns #5844
authorChristian Kamm <mail@ckamm.de>
Mon, 19 Jun 2017 08:48:19 +0000 (10:48 +0200)
committerMarkus Goetz <markus@woboq.com>
Tue, 20 Jun 2017 11:35:34 +0000 (13:35 +0200)
The ignore patterns for the journal files are hardcoded. Add them to
the UI to make them discoverable.

src/gui/ignorelisteditor.cpp

index d21cd0d875efbb5fe469f7ed90ee32bc39132087..1d124d1d6a5e4937e8da4d9b42004b9bbd2f6176 100644 (file)
@@ -48,6 +48,9 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) :
                          "and cannot be modified in this view.")
             .arg(QDir::toNativeSeparators(cfgFile.excludeFile(ConfigFile::SystemScope)));
 
+    addPattern(".csync_journal.db*", /*deletable=*/false, /*readonly=*/true);
+    addPattern("._sync_*.db*", /*deletable=*/false, /*readonly=*/true);
+    addPattern(".sync_*.db*", /*deletable=*/false, /*readonly=*/true);
     readIgnoreFile(cfgFile.excludeFile(ConfigFile::SystemScope), true);
     readIgnoreFile(cfgFile.excludeFile(ConfigFile::UserScope), false);