diff --git a/dialer/package/contents/ui/Dialer/Dialer.qml b/dialer/package/contents/ui/Dialer/Dialer.qml index e1f70aa3..b92b5182 100644 --- a/dialer/package/contents/ui/Dialer/Dialer.qml +++ b/dialer/package/contents/ui/Dialer/Dialer.qml @@ -35,6 +35,24 @@ Item { status.text = status.text + number } + Rectangle { + width: parent.width / 2 + x: parent.width / 4 + y: parent.height - callStatusNotification.paintedHeight + color: PlasmaCore.ColorScope.backgroundColor + opacity: 0.6 + visible: dialerUtils.callState == "failing" + + PlasmaComponents.Label { + id: callStatusNotification + anchors.fill: parent + text: "Unable to make a call at this moment" + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap + color: PlasmaCore.ColorScope.textColor + } + } + ColumnLayout { id: dialPadArea diff --git a/dialer/src/dialerutils.cpp b/dialer/src/dialerutils.cpp index f3312e1c..ebdb49a2 100644 --- a/dialer/src/dialerutils.cpp +++ b/dialer/src/dialerutils.cpp @@ -66,6 +66,7 @@ void DialerUtils::dial(const QString &number) connect(pendingChannel, &Tp::PendingChannelRequest::finished, [=](){ if (pendingChannel->isError()) { qWarning() << "Error when requesting channel" << pendingChannel->errorMessage(); + setCallState("failed"); } }); });