diff options
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets/main.qml')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/assets/main.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/main.qml b/examples/bluetooth/lowenergyscanner/assets/main.qml index e135d699..7f03d4fa 100644 --- a/examples/bluetooth/lowenergyscanner/assets/main.qml +++ b/examples/bluetooth/lowenergyscanner/assets/main.qml @@ -137,8 +137,12 @@ Rectangle { menuText: device.update onButtonClick: { device.startDeviceDiscovery(); - info.dialogText = "Searching..."; - info.visible = true;} + // if startDeviceDiscovery() failed device.state is not set + if (device.state) { + info.dialogText = "Searching..."; + info.visible = true; + } + } } Loader { |