diff options
author | Laszlo Papp <lpapp@kde.org> | 2014-03-07 02:48:36 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-07 07:53:38 +0100 |
commit | 0904f76a6afceca067caf287bd9734678d6d5df1 (patch) | |
tree | 7040a62b7a139a2b53cce6d2a67c61f549c41d28 /examples/serialport | |
parent | 7c737e0edcb93585856c65890ef34e5c5a28ee6b (diff) | |
download | qtserialport-0904f76a6afceca067caf287bd9734678d6d5df1.tar.gz |
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 <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'examples/serialport')
-rw-r--r-- | examples/serialport/terminal/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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] |