mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Handle Qt6.6 Deprecations (#4908)
This commit is contained in:
parent
b9cfc29059
commit
c1b0d50237
4 changed files with 21 additions and 4 deletions
|
|
@ -106,7 +106,8 @@ bool Servatrice_DatabaseInterface::checkSql()
|
|||
if (!sqlDatabase.isValid())
|
||||
return false;
|
||||
|
||||
if (!sqlDatabase.exec("select 1").isActive())
|
||||
auto query = QSqlQuery(sqlDatabase);
|
||||
if (query.exec("select 1") && query.isActive())
|
||||
return openDatabase();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue