Keep originalFile member as QString rather than C string.

This avoids encoding problems with interesting file names.
This commit is contained in:
Klaas Freitag 2013-11-05 17:48:51 +01:00
parent c6a926842a
commit 3a21edca2b
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ int CSyncThread::treewalkFile( TREE_WALK_FILE *file, bool remote )
if( ! file ) return -1;
SyncFileItem item;
item._file = QString::fromUtf8( file->path );
item._originalFile = file->path;
item._originalFile = item._file;
item._instruction = file->instruction;
item._dir = SyncFileItem::None;
item._fileId = QString::fromUtf8(file->file_id);

View File

@ -76,7 +76,7 @@ public:
bool _isDirectory;
// Variables used by the propagator
QByteArray _originalFile; // as it is in the csync tree
QString _originalFile; // as it is in the csync tree
csync_instructions_e _instruction;
time_t _modtime;
QByteArray _etag;