mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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()) {
|
||||
continue;
|
||||
}
|
||||
if (stmt.startsWith(QSL("--")) && !stmt.contains(QL1C('\n'))) {
|
||||
qDebug() << stmt;
|
||||
continue;
|
||||
}
|
||||
QSqlQuery query;
|
||||
if (!query.exec(stmt)) {
|
||||
qCritical() << "Error creating database schema" << query.lastError().text();
|
||||
|
Loading…
Reference in New Issue
Block a user