projects
/
qzeecontrol
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6247d73
)
Fix connect button not being enabled after scan.
author
Ruediger Gad
<rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 17:48:07 +0000
(19:48 +0200)
committer
Ruediger Gad
<rgad@fb2.fh-frankfurt.de>
Thu, 12 Apr 2012 17:48:07 +0000
(19:48 +0200)
qml/QZeeControl/MainPage.qml
patch
|
blob
|
history
diff --git
a/qml/QZeeControl/MainPage.qml
b/qml/QZeeControl/MainPage.qml
index
05bfb23
..
dc08d05
100644
(file)
--- a/
qml/QZeeControl/MainPage.qml
+++ b/
qml/QZeeControl/MainPage.qml
@@
-238,13
+238,16
@@
Page {
onDiscoveryChanged: {
if(discovery){
- infoText.text = "Scanning for devices..."
+ infoText.text = "Scanning for a device..."
scanButton.enabled = false
connectButton.enabled = false
disconnectButton.enabled = false
}else{
scanButton.enabled = true
disconnectButton.enabled = false
+
+ if(addressField.text !== "No device found yet." && portField.text !== "na")
+ connectButton.enabled = true
}
}