diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-03-31 05:56:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-03-31 05:56:24 +0200 |
commit | edf65cf55a13d2a062d257bc36fd9098323dbdcf (patch) | |
tree | 1bdc14a3c83f9a5d2c8cd972c706ed323785df73 | |
parent | 6722803ee7e8c34649a351df0ea069ab4065de3a (diff) |
hatire: don't show serial port changed if none selected
Showed on first start.
-rw-r--r-- | ftnoir_tracker_hatire/ftnoir_tracker_hat_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat_dialog.cpp b/ftnoir_tracker_hatire/ftnoir_tracker_hat_dialog.cpp index 34ebbeb8..51d5918e 100644 --- a/ftnoir_tracker_hatire/ftnoir_tracker_hat_dialog.cpp +++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat_dialog.cpp @@ -61,7 +61,8 @@ TrackerControls::TrackerControls() : theTracker(NULL), settingsDirty(false), tim if (indxport!=-1) { ui.cbSerialPort->setCurrentIndex(indxport); } else { - QMessageBox::warning(this,"FaceTrackNoIR Error", "Selected SerialPort modified"); + if (settings.SerialPortName != "") + QMessageBox::warning(this,"FaceTrackNoIR Error", "Selected SerialPort modified"); ui.cbSerialPort-> setCurrentIndex(indxport); } } |