Commit affd4b9c authored by Eike Ziller's avatar Eike Ziller

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 <Friedemann.Kleint@digia.com>
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() && orgFilePath.compare(newFilePath, Qt::CaseInsensitive) == 0)
return fileEngine->rename(newFilePath);
#endif
return QFile::rename(orgFilePath, newFilePath);
}
......
Markdown is supported
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