changed permissions for the db
authorpavelpa <pavelpa@localhost>
Mon, 1 Feb 2010 14:10:57 +0000 (14:10 +0000)
committerpavelpa <pavelpa@localhost>
Mon, 1 Feb 2010 14:10:57 +0000 (14:10 +0000)
 - TODO: check it on the device

src/sql/sqlengine.cpp

index cb07f81..1d90d7c 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