From 80fdfd233c00dbe1a141f0871e5ea6cd37327830 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 20 Feb 2017 12:16:03 +0100 Subject: [PATCH] feat(ui/views/App/Calls/Incall): use `Connections` component --- linphone-desktop/ui/views/App/Calls/Incall.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/linphone-desktop/ui/views/App/Calls/Incall.qml b/linphone-desktop/ui/views/App/Calls/Incall.qml index 15f3800d0..a05f452c4 100644 --- a/linphone-desktop/ui/views/App/Calls/Incall.qml +++ b/linphone-desktop/ui/views/App/Calls/Incall.qml @@ -43,8 +43,10 @@ Rectangle { // Handle video requests. // --------------------------------------------------------------------------- - SmartConnect { - Component.onCompleted: this.connect(call, 'videoRequested', function () { + Connections { + target: call + + onVideoRequested: { var dialog // Close dialog after 10s. @@ -79,7 +81,7 @@ Rectangle { }, title: qsTr('acceptVideoTitle') }) - }) + } } // ---------------------------------------------------------------------------