diff options
author | Mika Salmela <mika.salmela@qt.io> | 2017-08-28 11:22:19 +0300 |
---|---|---|
committer | Mika Salmela <mika.salmela@qt.io> | 2017-08-30 05:58:45 +0000 |
commit | a8c6d5e2dd2e1d0b51d6adf9e163b61b94366369 (patch) | |
tree | 53fcb36c8ce4f7d0f10c0eefc7f95daf5519d027 /LICENSE.GPL3 | |
parent | 93b539140c06da07d330c9ecad67ab5ed3f9b0c8 (diff) | |
download | qtserialport-a8c6d5e2dd2e1d0b51d6adf9e163b61b94366369.tar.gz |
Check if the currentPortName is empty on blockingmaster example
If there isn't serial ports available and the user still press the Start
button, the example will crash. This patch adds the check if the
currentPortName is empty and throws an error on that case.
Change-Id: I7e85f398e2844064fb9b00cecfdf2afa271d7de0
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'LICENSE.GPL3')
0 files changed, 0 insertions, 0 deletions