Fix typos.

This commit is contained in:
2020-06-30 18:06:27 -04:00
parent 168bd17302
commit 4a0481a1f2

View File

@@ -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
{