1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-24 17:35:43 +02:00

misc: crash fix for calladapter when there is no account

Change-Id: I6432c6ebb7776bb0968846c661bd98ed78cde2bb
This commit is contained in:
Ming Rui Zhang 2021-04-06 17:02:18 -04:00 committed by Sébastien Blin
parent f09b9a085a
commit a767690f95

View file

@ -35,7 +35,8 @@ CallAdapter::CallAdapter(SystemTray* systemTray, LRCInstance* instance, QObject*
, systemTray_(systemTray)
{
accountId_ = lrcInstance_->getCurrAccId();
connectCallModel(accountId_);
if (!accountId_.isEmpty())
connectCallModel(accountId_);
connect(&lrcInstance_->behaviorController(),
&BehaviorController::showIncomingCallView,
@ -518,13 +519,13 @@ CallAdapter::updateCallOverlay(const lrc::api::conversation::Info& convInfo)
: accInfo.contactModel->bestNameForContact(convInfo.participants[0]);
Q_EMIT updateOverlay(isPaused,
isAudioOnly,
isAudioMuted,
isVideoMuted,
isRecording,
accInfo.profileInfo.type == lrc::api::profile::Type::SIP,
!convInfo.confId.isEmpty(),
bestName);
isAudioOnly,
isAudioMuted,
isVideoMuted,
isRecording,
accInfo.profileInfo.type == lrc::api::profile::Type::SIP,
!convInfo.confId.isEmpty(),
bestName);
}
void