summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Dialer.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Dialer.qml b/app/Dialer.qml
index 248bc6c..11c190e 100644
--- a/app/Dialer.qml
+++ b/app/Dialer.qml
@@ -34,8 +34,11 @@ Item {
Connections {
target: telephony
- onConnectedChanged: {
- // FIXME: keep dialpad inactive until connected
+ onOnlineChanged: {
+ dialpad.enabled = connected
+ if (!connected) {
+ number.text = ''
+ }
}
onCallStateChanged: {
@@ -82,6 +85,7 @@ Item {
anchors.topMargin: 50
anchors.bottomMargin: 50
spacing: 20
+ id: dialpad
ColumnLayout {
Layout.alignment: Qt.AlignHCenter
Label {