From be483c951e8204335eef53aa9e833dc872ba0358 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 29 Feb 2020 00:19:19 +0100 Subject: [PATCH] change path --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 346d1910..4ca3e61f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();