From 43ec0c062467c05a66eac7a3fb992bc093315c89 Mon Sep 17 00:00:00 2001 From: trilene Date: Sun, 26 Jul 2020 10:59:50 -0400 Subject: Handle ICE failure --- src/TextInputWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/TextInputWidget.cpp') diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index d49fc746..9aadc101 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -666,7 +666,8 @@ void TextInputWidget::changeCallButtonState(WebRTCSession::State state) { QIcon icon; - if (state == WebRTCSession::State::DISCONNECTED) { + if (state == WebRTCSession::State::ICEFAILED || + state == WebRTCSession::State::DISCONNECTED) { callBtn_->setToolTip(tr("Place a call")); icon.addFile(":/icons/icons/ui/place-call.png"); } else { -- cgit 1.5.1