Image viewer example: Fix broken error message formatting.

Task-number: QTBUG-48851
Change-Id: Ie86bcc498c9dc1f9754192a256a28fa467f6dbc9
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2015-10-19 15:51:22 +02:00
parent 037ba8d7af
commit 6ea67f52da

View File

@ -76,7 +76,7 @@ bool ImageViewer::loadFile(const QString &fileName)
if (newImage.isNull()) {
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
tr("Cannot load %1: %2")
.arg(QDir::toNativeSeparators(fileName)), reader.errorString());
.arg(QDir::toNativeSeparators(fileName), reader.errorString()));
return false;
}
//! [2]