comparison src/printing.cpp @ 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
comparison
equal deleted inserted replaced
270:8c6fb6ee6f9e 271:df3f902588af
130 query.setForwardOnly(true); 130 query.setForwardOnly(true);
131 query.exec(); 131 query.exec();
132 132
133 if (!slCheckAndReportSQLError(query, "printDocumentPage()")) 133 if (!slCheckAndReportSQLError(query, "printDocumentPage()"))
134 { 134 {
135 slErrorMsg( 135 slErrorMsg(this,
136 tr("SQL-tietokantavirhe"), 136 tr("SQL-tietokantavirhe"),
137 tr("Tietokantaa selattaessa tapahtui virhe.")); 137 tr("Tietokantaa selattaessa tapahtui virhe."));
138 138
139 return false; 139 return false;
140 } 140 }