diff --git a/cockatrice/src/main.cpp b/cockatrice/src/main.cpp index c6f303b6..c0a99c8c 100644 --- a/cockatrice/src/main.cpp +++ b/cockatrice/src/main.cpp @@ -158,13 +158,12 @@ int main(int argc, char *argv[]) #ifdef PORTABLE_BUILD const QString dataDir = "data/"; -#else -#if QT_VERSION < 0x050000 +#elif QT_VERSION < 0x050000 const QString dataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation); #else const QString dataDir = QStandardPaths::standardLocations(QStandardPaths::DataLocation).first(); #endif -#endif + if (!db->getLoadSuccess()) if (!db->loadCardDatabase(dataDir + "/cards.xml")) settingsCache->setCardDatabasePath(dataDir + "/cards.xml");