mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Startup: fix resetting card database to default
The check was inverted. LoadStatus::Ok = 0, so only when db->loadCardDatabase() returns 0 we know the card database path is correct
This commit is contained in:
parent
0e3711723d
commit
b5b7ad8958
2 changed files with 2 additions and 2 deletions
|
|
@ -926,7 +926,7 @@ LoadStatus CardDatabase::loadCardDatabase(const QString &path, bool tokens)
|
|||
|
||||
if (!tokens) {
|
||||
loadStatus = tempLoadStatus;
|
||||
qDebug() << "loadCardDatabase(): Status = " << loadStatus;
|
||||
qDebug() << "loadCardDatabase(): Path = " << path << " Status = " << loadStatus;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue