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>
commita8c6d5e2dd2e1d0b51d6adf9e163b61b94366369
parent93b539140c06da07d330c9ecad67ab5ed3f9b0c8
authorMika Salmela <mika.salmela@qt.io>
committerMika Salmela <mika.salmela@qt.io>
commit timeWed, 30 Aug 2017 05:58:45 +0000