mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Crash fix on ending a call.
This commit is contained in:
parent
1b0b92fbc3
commit
a51086c06a
2 changed files with 5 additions and 3 deletions
|
|
@ -119,7 +119,10 @@ CallModel::~CallModel () {
|
|||
mMagicSearch->removeListener(mSearch);
|
||||
if(mCall){
|
||||
mCall->removeListener(mCallListener);
|
||||
mConferenceModel = nullptr;// Ordering deletion.
|
||||
mConferenceInfoModel = nullptr;
|
||||
mCall->unsetData("call-model");
|
||||
mCall = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -217,7 +220,8 @@ QSharedPointer<ConferenceModel> CallModel::getConferenceSharedModel(){
|
|||
}
|
||||
|
||||
bool CallModel::isConference () const{
|
||||
return mCall->getConference() != nullptr;
|
||||
// Check status to avoid crash when requesting a conference on an ended call.
|
||||
return getStatus() != CallStatusEnded && mCall->getConference() != nullptr;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -300,8 +300,6 @@ Window {
|
|||
? conference.callModel.conferenceVideoLayout == LinphoneEnums.ConferenceLayoutGrid || !conference.callModel.videoEnabled? gridComponent : activeSpeakerComponent
|
||||
: activeSpeakerComponent
|
||||
: null
|
||||
|
||||
onSourceComponentChanged: console.log(conference.callModel.conferenceVideoLayout)
|
||||
active: conference.callModel
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue