mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Keep originalFile member as QString rather than C string.
This avoids encoding problems with interesting file names.
This commit is contained in:
parent
c6a926842a
commit
3a21edca2b
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user