change path

This commit is contained in:
Tobias Fella 2020-02-29 00:19:19 +01:00
parent 05965bf39c
commit be483c951e
No known key found for this signature in database
GPG Key ID: E55EDAB3CA5D9925

View File

@ -45,7 +45,7 @@ int main(int argc, char *argv[])
QQmlApplicationEngine engine;
QSqlDatabase db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
QString databasePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
QString databasePath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
QDir(databasePath).mkpath(databasePath);
db.setDatabaseName(databasePath + "/database.db3");
db.open();