diff options
author | Nils Schwabe | 2014-04-04 16:14:08 +0200 |
---|---|---|
committer | Nils Schwabe | 2014-04-04 16:14:08 +0200 |
commit | 84e1cd7a805244fa6f3c81f31f733637ed42dd8b (patch) | |
tree | e47c090a11d12ff19b2d5b506cd51f71f858af31 /src/dialog.cpp | |
parent | added cache to news and help, fixed filter bug (diff) | |
download | vmchooser2-84e1cd7a805244fa6f3c81f31f733637ed42dd8b.tar.gz vmchooser2-84e1cd7a805244fa6f3c81f31f733637ed42dd8b.tar.xz vmchooser2-84e1cd7a805244fa6f3c81f31f733637ed42dd8b.zip |
changed permissions of xml and backup xml to 666
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index 233ca32..0967d8c 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -329,6 +329,13 @@ void Dialog::addSessionsAfterDownload(QNetworkReply* reply) { if (file.write(data) != data.length()) { return; } + + if (!file.setPermissions(QFile::ReadUser | QFile::ReadGroup | QFile::ReadOther | QFile::WriteUser | QFile::WriteGroup | QFile::WriteOther)) { + if (debugMode) { + qDebug() << "Could not change permissions of file: " << news_backup_filename; + } + } + file.close(); } |