summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorNils Schwabe2014-04-04 16:14:08 +0200
committerNils Schwabe2014-04-04 16:14:08 +0200
commit84e1cd7a805244fa6f3c81f31f733637ed42dd8b (patch)
treee47c090a11d12ff19b2d5b506cd51f71f858af31 /src/dialog.cpp
parentadded cache to news and help, fixed filter bug (diff)
downloadvmchooser2-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.cpp7
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();
}