Commit 854c6b44 authored by Edric Milaret's avatar Edric Milaret

fix call state not being handled

- Putting a call on hold then selecting another contact
would render the person on hold unusable (no more reaction
from UI on selection event)
- Same applies to a failed call and having selected another
contact

Change-Id: I61239916d9d7778e8ce0ca557442b89433c91bbe
Tuleap: #450
parent 6a785af7
......@@ -456,6 +456,7 @@ void CallWidget::callStateToView(Call* value)
ui->stackedWidget->setCurrentWidget(ui->videoPage);
break;
case Call::State::CURRENT:
case Call::State::HOLD:
ui->stackedWidget->setCurrentWidget(ui->videoPage);
break;
case Call::State::OVER:
......@@ -464,10 +465,13 @@ void CallWidget::callStateToView(Call* value)
case Call::State::INITIALIZATION:
case Call::State::CONNECTED:
case Call::State::RINGING:
case Call::State::FAILURE:
case Call::State::ERROR:
ui->stackedWidget->setCurrentWidget(ui->outboundCallPage);
break;
default:
qWarning() << "Call state not handled doing nothing : "
<< value->toHumanStateName();
break;
}
}
......
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