diff --git a/core/src/db_manager.cpp b/core/src/db_manager.cpp index d8e2ace..d295749 100644 --- a/core/src/db_manager.cpp +++ b/core/src/db_manager.cpp @@ -20,6 +20,9 @@ DBManager::DBManager() : DRIVER("QSQLITE") { + if(!access("config/akashi.db", R_OK | W_OK)) + qCritical() << "Database Error: Missing permissions. Check if \"" + "config/akashi.db" "\" is writable.\n"; + db = QSqlDatabase::addDatabase(DRIVER); db.setDatabaseName("config/akashi.db"); if (!db.open())