comparison src/printing.cpp @ 255:55581d90c55d

Change API for slCheckAndReportSQLError().
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Oct 2018 13:21:51 +0300
parents 43a5e09bb832
children df3f902588af
comparison
equal deleted inserted replaced
254:0e0ad52994ca 255:55581d90c55d
128 QSqlQuery query; 128 QSqlQuery query;
129 query.prepare(querystr); 129 query.prepare(querystr);
130 query.setForwardOnly(true); 130 query.setForwardOnly(true);
131 query.exec(); 131 query.exec();
132 132
133 if (!slCheckAndReportSQLError("printDocumentPage()", query.lastError())) 133 if (!slCheckAndReportSQLError(query, "printDocumentPage()"))
134 { 134 {
135 slErrorMsg( 135 slErrorMsg(
136 tr("SQL-tietokantavirhe"), 136 tr("SQL-tietokantavirhe"),
137 tr("Tietokantaa selattaessa tapahtui virhe.")); 137 tr("Tietokantaa selattaessa tapahtui virhe."));
138 138