mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-15 18:21:35 +03:00
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:
parent
c232411e96
commit
f5f04bcc4b
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ public:
|
|||
}
|
||||
|
||||
QString destination() const {
|
||||
return _instruction == CSYNC_INSTRUCTION_RENAME ? _renameTarget : _file;
|
||||
if (!_renameTarget.isEmpty()) {
|
||||
return _renameTarget;
|
||||
}
|
||||
return _file;
|
||||
}
|
||||
|
||||
bool isEmpty() const {
|
||||
|
|
Loading…
Reference in a new issue