From 0904f76a6afceca067caf287bd9734678d6d5df1 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Fri, 7 Mar 2014 02:48:36 +0000 Subject: Swap the open and configure error reporting in the terminal example It seems they were accidentally misplaced, and it was not caught by anyone while testing and using this example. Although, I have seen users doing this mistake on Stack Overflow, so I was wondering where they would get the idea from. It is possible they have done such mistakes due to a copy/paste operation from this old example. Change-Id: Iaa25ae47c5f161856930801611a3dc7ff0aa3b0a Reviewed-by: Sergey Belyashov --- examples/serialport/terminal/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/serialport/terminal/mainwindow.cpp b/examples/serialport/terminal/mainwindow.cpp index 47864a2..f4fc587 100644 --- a/examples/serialport/terminal/mainwindow.cpp +++ b/examples/serialport/terminal/mainwindow.cpp @@ -112,12 +112,12 @@ void MainWindow::openSerialPort() serial->close(); QMessageBox::critical(this, tr("Error"), serial->errorString()); - ui->statusBar->showMessage(tr("Open error")); + ui->statusBar->showMessage(tr("Configure error")); } } else { QMessageBox::critical(this, tr("Error"), serial->errorString()); - ui->statusBar->showMessage(tr("Configure error")); + ui->statusBar->showMessage(tr("Open error")); } } //! [4] -- cgit v1.2.1