Commit affd4b9c authored by Eike Ziller's avatar Eike Ziller
Browse files

Also use file renaming workaround for Qt5.

QTBUG-3570 doesn't look like being fixed in Qt5.

Change-Id: Icddcd0e98899c9a8ac01b99783bb9450dcbe952b
Reviewed-by: default avatarFriedemann Kleint <>
parent c6e74126
......@@ -193,12 +193,10 @@ void FileUtils::removeFile(const QString &filePath, bool deleteFromFS)
static inline bool fileSystemRenameFile(const QString &orgFilePath,
const QString &newFilePath)
#if QT_VERSION < 0x050000 // ### fixme: QTBUG-3570 might be fixed in Qt 5?
QFile f(orgFilePath); // Due to QTBUG-3570
QAbstractFileEngine *fileEngine = f.fileEngine();
if (!fileEngine->caseSensitive() &&, Qt::CaseInsensitive) == 0)
return fileEngine->rename(newFilePath);
return QFile::rename(orgFilePath, newFilePath);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment