mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-28 11:53:11 -07:00
Handle Qt6.6 Deprecations (#4908)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user