diff options
author | Samir Benmendil <me@rmz.io> | 2019-08-15 01:27:10 +0300 |
---|---|---|
committer | Samir Benmendil <me@rmz.io> | 2019-08-15 05:00:26 +0300 |
commit | 34fcb13e78e3075126cc8c2677826ee5b693e219 (patch) | |
tree | a58c586a96ee4d117c41e7c7e8c18178fc3b1dbb /src/gui/ignorelisteditor.cpp | |
parent | 758483bc6ebd455fa810b43293c70e4b7bfb4fea (diff) |
Never ignore .sync-exclude, even if excludeHidden
That is unless any of the parent folders is hidden.
Signed-off-by: Samir Benmendil <me@rmz.io>
Diffstat (limited to 'src/gui/ignorelisteditor.cpp')
-rw-r--r-- | src/gui/ignorelisteditor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/ignorelisteditor.cpp b/src/gui/ignorelisteditor.cpp index 22182b5a0..6e5a3d784 100644 --- a/src/gui/ignorelisteditor.cpp +++ b/src/gui/ignorelisteditor.cpp @@ -47,6 +47,14 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) connect(this, &QDialog::accepted, [=]() { ui->ignoreTableWidget->slotWriteIgnoreFile(userConfig); + /* 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. + * TODO this can now be fixed, simply attach this IgnoreListEditor to top-level account + * settings + */ + FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles()); }); connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &IgnoreListEditor::slotRestoreDefaults); |