Commit 6dc8bae6 authored by Lukas Appelhans's avatar Lukas Appelhans
Browse files

Fix bug not opening the local db writeable

parent 22dc5eac
......@@ -44,8 +44,8 @@ DatabasePrivate::~DatabasePrivate()
void DatabasePrivate::init()
try {
qDebug() << "Connect to db";
dbConnection.connectToDB(pathToDb, pathToDb.endsWith("local.db"));
qDebug() << "Connect to db" << pathToDb;
dbConnection.connectToDB(pathToDb, !pathToDb.endsWith("local.db"));
populateGroupCache(); /* populate group cache on startup */
valid = true;
} catch (SQLiteException &ex) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment