Mercurial > hg > syntilista
diff src/util.h @ 271:df3f902588af
Add parent window argument to slErrorMsg() and use it.
Also use main window as parent for other static/modal dialogs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 17 Mar 2023 13:09:43 +0200 |
parents | 55581d90c55d |
children | 0f345852b3ed |
line wrap: on
line diff
--- a/src/util.h Sun Feb 12 15:20:11 2023 +0200 +++ b/src/util.h Fri Mar 17 13:09:43 2023 +0200 @@ -10,6 +10,9 @@ #define SL_UTIL_H +#include <QWidget> + + #define SQL_MAX_SCHEMA_INSERTS 16 @@ -37,7 +40,7 @@ const QString slDateTimeToStr(const QDateTime &val); void slLog(const QString &mtype, const QString &msg); -int slErrorMsg(const QString &title, const QString &msg); +int slErrorMsg(QWidget *parent, const QString &title, const QString &msg); bool slCheckAndReportSQLError(const QSqlQuery &query, const QString where, bool report = false); bool slConditionallyCreateSQLTables(QSqlDatabase &db, const SLSQLSchemaDef *schema, const int nschema);