diff options
author | Christian Kamm <mail@ckamm.de> | 2015-10-13 13:53:38 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2015-10-13 13:53:38 +0300 |
commit | 51a2e6c5800526e99814a28138e882d373a677bb (patch) | |
tree | e01db31ddad683d2807db9bd60c61ca20daaac4e /src/gui/selectivesyncdialog.cpp | |
parent | 7fe03c715d27ce0aeb6ef83d529ca8e610e3c778 (diff) |
Exclusion: Fix confusion with relative and absolute paths
Diffstat (limited to 'src/gui/selectivesyncdialog.cpp')
-rw-r--r-- | src/gui/selectivesyncdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/selectivesyncdialog.cpp b/src/gui/selectivesyncdialog.cpp index f24e42f0c..021e00579 100644 --- a/src/gui/selectivesyncdialog.cpp +++ b/src/gui/selectivesyncdialog.cpp @@ -185,7 +185,9 @@ void SelectiveSyncTreeView::slotUpdateDirectories(QStringList list) QMutableListIterator<QString> it(list); while (it.hasNext()) { it.next(); - if (f.isFileExcluded(it.value())) { + QString path = it.value(); + path.remove(pathToRemove); + if (f.isFileExcludedRelative(path)) { it.remove(); } } @@ -195,7 +197,6 @@ void SelectiveSyncTreeView::slotUpdateDirectories(QStringList list) if (_oldBlackList == QStringList("/")) { _oldBlackList.clear(); foreach (QString path, list) { - path.remove(pathToRemove); if (path.isEmpty()) { continue; } |