SyncEngine: Always return _renameTarget in destination() if possible

We want to do this since the instruction is actually ERORR, not RENAME.
This commit is contained in:
Markus Goetz 2014-09-05 10:06:19 +02:00
parent c232411e96
commit f5f04bcc4b

View file

@ -65,7 +65,10 @@ public:
} }
QString destination() const { QString destination() const {
return _instruction == CSYNC_INSTRUCTION_RENAME ? _renameTarget : _file; if (!_renameTarget.isEmpty()) {
return _renameTarget;
}
return _file;
} }
bool isEmpty() const { bool isEmpty() const {