From 4a0481a1f29edbd380c52ddf536917c609cc0e3a Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Tue, 30 Jun 2020 18:06:27 -0400 Subject: [PATCH] Fix typos. --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ada77d0..7f7de11 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 { -- GitLab