aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2012-11-27 11:37:46 +0100
committerEike Ziller <eike.ziller@digia.com>2012-11-28 14:56:36 +0100
commitaffd4b9ce1774c4e1aba4814891d1d471f202f6c (patch)
tree66e99738c6b0637d1599bb26075bdfdbea928426 /src
parentc6e7412626d8cc0dc6f8466abb1054738276e1d8 (diff)
Also use file renaming workaround for Qt5.
QTBUG-3570 doesn't look like being fixed in Qt5. Change-Id: Icddcd0e98899c9a8ac01b99783bb9450dcbe952b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/coreplugin/fileutils.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/fileutils.cpp b/src/plugins/coreplugin/fileutils.cpp
index ee76d2c023..fc8f728bdd 100644
--- a/src/plugins/coreplugin/fileutils.cpp
+++ b/src/plugins/coreplugin/fileutils.cpp
@@ -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);
}