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:
parent
f09b9a085a
commit
a767690f95
1 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue