From 35c0cf4e598268b2f7c3f27a22c48caaf7c5eff7 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 9 Oct 2018 15:54:03 +0200 Subject: [PATCH] New discovery algorithm: Set the originalFile for ignored files This is used to show the name in the UI --- src/libsync/discovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 0f1e29808..b6f853156 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -296,6 +296,7 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, bool isDirectory, auto item = SyncFileItemPtr::create(); item->_file = path; + item->_originalFile = path; item->_instruction = CSYNC_INSTRUCTION_IGNORE; if (isSymlink) { @@ -1062,6 +1063,7 @@ void ProcessDirectoryJob::processBlacklisted(const PathTuple &path, const OCC::L auto item = SyncFileItem::fromSyncJournalFileRecord(dbEntry); item->_file = path._target; + item->_originalFile = path._original; item->_inode = localEntry.inode; if (dbEntry.isValid() && ((dbEntry._modtime == localEntry.modtime && dbEntry._fileSize == localEntry.size) || (localEntry.isDirectory && dbEntry._type == ItemTypeDirectory))) { item->_instruction = CSYNC_INSTRUCTION_REMOVE; -- 2.30.2