aboutsummaryrefslogtreecommitdiff
path: root/components/RemoteNodeEdit.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2018-11-10 23:43:50 +0000
committerxiphon <xiphon@protonmail.com>2018-11-11 03:02:42 +0300
commit1c61de082af25075752bf4b8c4e2c8f3d836b780 (patch)
treef9a3a1ebfa619196cd803c08145494d4d0af4a95 /components/RemoteNodeEdit.qml
parentb34d5409e644567d86af23a8725125bdab0ad071 (diff)
downloadmonzero-gui-1c61de082af25075752bf4b8c4e2c8f3d836b780.tar.gz
monzero-gui-1c61de082af25075752bf4b8c4e2c8f3d836b780.tar.xz
monzero-gui-1c61de082af25075752bf4b8c4e2c8f3d836b780.zip
settings: fix Remote Node 'Connect' button
Diffstat (limited to 'components/RemoteNodeEdit.qml')
-rw-r--r--components/RemoteNodeEdit.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/RemoteNodeEdit.qml b/components/RemoteNodeEdit.qml
index 314cb45d..52b3b46e 100644
--- a/components/RemoteNodeEdit.qml
+++ b/components/RemoteNodeEdit.qml
@@ -58,6 +58,11 @@ GridLayout {
property bool lineEditFontBold: true
signal editingFinished()
+ signal textChanged()
+
+ function isValid() {
+ return daemonAddr.text.trim().length > 0 && daemonPort.acceptableInput
+ }
function getAddress() {
return daemonAddr.text.trim() + ":" + daemonPort.text.trim()
@@ -79,6 +84,7 @@ GridLayout {
fontBold: lineEditFontBold
fontSize: lineEditFontSize
onEditingFinished: root.editingFinished()
+ onTextChanged: root.textChanged()
}
LineEdit {
@@ -99,5 +105,6 @@ GridLayout {
validator: IntValidator{bottom: 1; top: 65535;}
onEditingFinished: root.editingFinished()
+ onTextChanged: root.textChanged()
}
}