Show the rename target in the client log file. (#5149)
authorKlaas Freitag <freitag@owncloud.com>
Mon, 5 Sep 2016 11:26:49 +0000 (13:26 +0200)
committerMarkus Goetz <markus@woboq.com>
Mon, 5 Sep 2016 11:26:49 +0000 (13:26 +0200)
src/gui/syncrunfilelog.cpp

index 04d1763ad6a48c66dc404db7afa72a5de4763c6d..94467942679faf99698960f62faa6e4c54f9cf05 100644 (file)
@@ -145,7 +145,11 @@ void SyncRunFileLog::logItem( const SyncFileItem& item )
     const QChar L = QLatin1Char('|');
     _out << ts << L;
     _out << QString::number(item._requestDuration) << L;
-    _out << item._file << L;
+    if( item.log._instruction != CSYNC_INSTRUCTION_RENAME ) {
+        _out << item._file << L;
+    } else {
+        _out << item._file << QLatin1String(" -> ") << item._renameTarget << L;
+    }
     _out << instructionToStr( item.log._instruction ) << L;
     _out << directionToStr( item._direction ) << L;
     _out << QString::number(item.log._modtime) << L;