diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-10-23 17:35:35 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2017-10-24 16:50:14 +0300 |
commit | ee63b36ed366fee84ae4d8b72dac91e1c7db7146 (patch) | |
tree | a1379c1ea8475097c7d035db773e8473c569e662 /test/testsyncengine.cpp | |
parent | 35d28294cd838027d9de0c5fc009329f5386d2b4 (diff) |
SyncFileStatusTracker: Detect changed in the shared flag
... even if the file is not changed.
We get an UPDATE_METADATA in that case, so make sure we let the
SyncFileStatusTracker know about it.
That means we need to filter out UPDATE_METADATA in the other listeners
of this signal.
Issue #6098
Diffstat (limited to 'test/testsyncengine.cpp')
-rw-r--r-- | test/testsyncengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testsyncengine.cpp b/test/testsyncengine.cpp index f1ed98941..be51d8bd7 100644 --- a/test/testsyncengine.cpp +++ b/test/testsyncengine.cpp @@ -16,7 +16,7 @@ bool itemDidComplete(const QSignalSpy &spy, const QString &path) for(const QList<QVariant> &args : spy) { auto item = args[0].value<SyncFileItemPtr>(); if (item->destination() == path) - return true; + return item->_instruction != CSYNC_INSTRUCTION_NONE && item->_instruction != CSYNC_INSTRUCTION_UPDATE_METADATA; } return false; } |