Commit 6445ffc4 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix file removal problem on Windows.

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

Task-number: QTCREATORBUG-3343
parent 3ec5f844
......@@ -121,6 +121,7 @@ bool MaemoGlobal::removeRecursively(const QString &filePath, QString &error)
QFileInfo fileInfo(filePath);
if (!fileInfo.exists())
return true;
QFile::setPermissions(filePath, fileInfo.permissions() | QFile::WriteUser);
if (fileInfo.isDir()) {
QDir dir(filePath);
QStringList fileNames = dir.entryList(QDir::Files | QDir::Hidden
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