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/vsession.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/vsession.cpp')
-rw-r--r-- | src/vsession.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp index 2987a62..1283134 100644 --- a/src/vsession.cpp +++ b/src/vsession.cpp @@ -333,6 +333,11 @@ QList<Session*> VSession::readXmlFile(const QString& filepath) { // file is valid --> create backup file QFile::remove(xml_backup_filename); QFile::copy(filepath, xml_backup_filename); + if (!QFile::setPermissions(xml_backup_filename, 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(); |