From 63a2d4b4bbd7f93c0f4b85f421650d301931cae9 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 5 Nov 2023 23:18:43 +0100 Subject: [PATCH] Fix crash during calls --- resources/qml/voip/ActiveCallBar.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/qml/voip/ActiveCallBar.qml b/resources/qml/voip/ActiveCallBar.qml index eb7fce76..3b5e2464 100644 --- a/resources/qml/voip/ActiveCallBar.qml +++ b/resources/qml/voip/ActiveCallBar.qml @@ -134,8 +134,14 @@ Rectangle { callTimer.startTime: Math.floor((new Date()).getTime() / 1000) } + // HACK(Nico): Somehow this causes a crash when not using the custom parser for that property change... + //PropertyChanges { + // stackLayout.currentIndex: CallManager.callType != Voip.VOICE ? 1 : 0 + //} + PropertyChanges { - stackLayout.currentIndex: CallManager.callType != Voip.VOICE ? 1 : 0 + target: stackLayout + currentIndex: CallManager.callType != Voip.VOICE ? 1 : 0 // qmllint disable Quick.property-changes-parsed } },