Handle Qt6.6 Deprecations (#4908)

This commit is contained in:
Zach H
2023-10-13 20:53:47 -04:00
committed by GitHub
parent b9cfc29059
commit c1b0d50237
4 changed files with 21 additions and 4 deletions

View File

@@ -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;
}