Commit b5b49077 authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez

windows: fix callStateChanged handling

Refs #72789

Change-Id: I2d99c0544513a885d05530247681587211059c10
parent 67007d13
......@@ -194,13 +194,15 @@ void
CallWidget::callStateChanged(Call* call, Call::State previousState)
{
Q_UNUSED(previousState)
if (call == nullptr)
return;
ui->callList->setCurrentIndex(callModel_->getIndex(actualCall_));
if (call->state() == Call::State::OVER) {
actualCall_ = nullptr;
ui->videoWidget->hide();
} else if (call->state() == Call::State::HOLD) {
ui->videoWidget->hide();
} else {
} else if (call->state() == Call::State::CURRENT){
ui->videoWidget->show();
ui->messageOutput->setModel(
IMConversationManager::instance()->getModel(actualCall_));
......
......@@ -240,6 +240,12 @@
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="callStateLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Call State :</string>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment