summary refs log tree commit diff
path: root/src/ActiveCallBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ActiveCallBar.cpp')
-rw-r--r--src/ActiveCallBar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ActiveCallBar.cpp b/src/ActiveCallBar.cpp

index 564842da..e55b2e86 100644 --- a/src/ActiveCallBar.cpp +++ b/src/ActiveCallBar.cpp
@@ -123,25 +123,32 @@ ActiveCallBar::update(WebRTCSession::State state) { switch (state) { case WebRTCSession::State::INITIATING: + show(); stateLabel_->setText("Initiating call..."); break; case WebRTCSession::State::INITIATED: + show(); stateLabel_->setText("Call initiated..."); break; case WebRTCSession::State::OFFERSENT: + show(); stateLabel_->setText("Calling..."); break; case WebRTCSession::State::CONNECTING: + show(); stateLabel_->setText("Connecting..."); break; case WebRTCSession::State::CONNECTED: + show(); callStartTime_ = QDateTime::currentSecsSinceEpoch(); timer_->start(1000); stateLabel_->setText("Voice call:"); durationLabel_->setText("00:00"); durationLabel_->show(); break; + case WebRTCSession::State::ICEFAILED: case WebRTCSession::State::DISCONNECTED: + hide(); timer_->stop(); callPartyLabel_->setText(QString()); stateLabel_->setText(QString());