Maemo: Fix file removal problem on Windows.

Apparently, we can't delete read-only files.

Task-number: QTCREATORBUG-3343
This commit is contained in:
Christian Kandeler
2010-12-16 13:06:15 +01:00
parent 3ec5f8447e
commit 6445ffc489

View File

@@ -121,6 +121,7 @@ bool MaemoGlobal::removeRecursively(const QString &filePath, QString &error)
QFileInfo fileInfo(filePath); QFileInfo fileInfo(filePath);
if (!fileInfo.exists()) if (!fileInfo.exists())
return true; return true;
QFile::setPermissions(filePath, fileInfo.permissions() | QFile::WriteUser);
if (fileInfo.isDir()) { if (fileInfo.isDir()) {
QDir dir(filePath); QDir dir(filePath);
QStringList fileNames = dir.entryList(QDir::Files | QDir::Hidden QStringList fileNames = dir.entryList(QDir::Files | QDir::Hidden