mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
ProfileManager: Skip clear comment SQL statements
Qt throws errors when the SQL command does nothing. BUG: 491993 FIXED-IN: 24.12.0 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
d9122703ae
commit
0c67d1e0c8
@ -306,6 +306,10 @@ void ProfileManager::connectDatabase()
|
|||||||
if (stmt.isEmpty()) {
|
if (stmt.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (stmt.startsWith(QSL("--")) && !stmt.contains(QL1C('\n'))) {
|
||||||
|
qDebug() << stmt;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
if (!query.exec(stmt)) {
|
if (!query.exec(stmt)) {
|
||||||
qCritical() << "Error creating database schema" << query.lastError().text();
|
qCritical() << "Error creating database schema" << query.lastError().text();
|
||||||
|
Loading…
Reference in New Issue
Block a user