Fix call to QMessageBox::information
The call assumes two arguments for QString::arg, but only one was passed. The error string became a buttontext argument, which is clearly wrong. Task-number: QTBUG-92483 Change-Id: I1fab5be88331f636185693b721f0d9688c0d9ff3 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
parent
931929865f
commit
70d99512ee
@ -151,7 +151,7 @@ bool ImageViewer::saveFile(const QString &fileName)
|
||||
if (!writer.write(image)) {
|
||||
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
|
||||
tr("Cannot write %1: %2")
|
||||
.arg(QDir::toNativeSeparators(fileName)), writer.errorString());
|
||||
.arg(QDir::toNativeSeparators(fileName), writer.errorString()));
|
||||
return false;
|
||||
}
|
||||
const QString message = tr("Wrote \"%1\"").arg(QDir::toNativeSeparators(fileName));
|
||||
|
Loading…
x
Reference in New Issue
Block a user