Fix display of capture error messages in the status bar.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Jul 2017 20:10:02 +0000 (22:10 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Jul 2017 20:10:02 +0000 (22:10 +0200)
qtapp/barcode2cash/mainwindow.cpp

index 800836dd52fcee504ef37e427731ab77da69b570..aa204873675b51c600811ec867449f170ae2b7c9 100644 (file)
@@ -62,5 +62,5 @@ void MainWindow::showCaptureSuccess(int, QString fileName) {
 
 
 void MainWindow::showCaptureError(int, QCameraImageCapture::Error error, QString errorString) {
-    ui->statusBar->showMessage(tr("Error when capturing image (error id %2): %1.").arg(errorStringerror));
+    ui->statusBar->showMessage(tr("Error when capturing image (error id %2): %1.").arg(errorString).arg(error));
 }