diff --git a/src/main.cpp b/src/main.cpp index ada77d089dbd9377d8087f9d5f0c5530d84ec842..7f7de112926c246a1be0c5c77c3af9e31a7728fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,10 +57,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); #ifdef Q_OS_ANDROID - if(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation).length > 1) + if(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation).length() > 1) { - db.setDatabaseName(QDir(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation)[1]).filePath("servicerecords.sqlite")); //Use second appdata path on - android for shared storage. + db.setDatabaseName(QDir(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation)[1]).filePath("servicerecords.sqlite")); //Use second appdata path on android for shared storage. } else {