From 1d60009fc674f355cd2f9ceaa1c067e6a60609da Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 19 Aug 2022 16:36:49 +0200 Subject: [PATCH] Forbid changing schedule mode on conference edition. --- linphone-app/ui/modules/Linphone/Chat/ChatCalendarMessage.qml | 2 +- linphone-app/ui/views/App/Dialog/NewConference.qml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Chat/ChatCalendarMessage.qml b/linphone-app/ui/modules/Linphone/Chat/ChatCalendarMessage.qml index ceb2b79b4..824cc5904 100644 --- a/linphone-app/ui/modules/Linphone/Chat/ChatCalendarMessage.qml +++ b/linphone-app/ui/modules/Linphone/Chat/ChatCalendarMessage.qml @@ -330,7 +330,7 @@ Loader{ onClicked: { window.detachVirtualWindow() window.attachVirtualWindow(Utils.buildAppDialogUri('NewConference') - ,{conferenceInfoModel: mainItem.conferenceInfoModel}) + ,{conferenceInfoModel: mainItem.conferenceInfoModel, forceSchedule: true}) } } ActionButton{ diff --git a/linphone-app/ui/views/App/Dialog/NewConference.qml b/linphone-app/ui/views/App/Dialog/NewConference.qml index d9daced14..41f0bd360 100644 --- a/linphone-app/ui/views/App/Dialog/NewConference.qml +++ b/linphone-app/ui/views/App/Dialog/NewConference.qml @@ -20,6 +20,7 @@ DialogPlus { property bool isNew: !conferenceInfoModel || conferenceInfoModel.uri === '' property ConferenceInfoModel conferenceInfoModel: ConferenceInfoModel{} onConferenceInfoModelChanged: selectedParticipants.setAddresses(conferenceInfoModel) + property bool forceSchedule : false property int creationState: 0 Timer{ id: closeDelay @@ -249,7 +250,8 @@ DialogPlus { checked: conferenceInfoModel.isScheduled onClicked: { - checked = !checked + if( !conferenceManager.forceSchedule) + checked = !checked } indicatorStyle: SwitchStyle.aux }