changed permissions for the db
[toast/confclerk.git] / src / sql / sqlengine.cpp
index cb07f81b774c4e1ca2bb2090adb72744dcbc19ea..1d90d7c9ebc23e9f8d2b2e69492a2eff14330845 100644 (file)
@@ -43,7 +43,9 @@ QString SqlEngine::login(const QString &aDatabaseType, const QString &aDatabaseN
 
         // copy conference Db from resource, instead of creating
         // empty tables and then parsing the schedule
+        QFile dbFile(aDatabaseName);
         QFile(":/fosdem.sqlite").copy(aDatabaseName);
+        dbFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ReadGroup | QFile::WriteGroup);
         database.open();
     }
     else