summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-26 10:59:50 -0400
committertrilene <trilene@runbox.com>2020-07-26 10:59:50 -0400
commit43ec0c062467c05a66eac7a3fb992bc093315c89 (patch)
treed90f85eb42e4d07d31c2aa46906ebb9c21179c86 /src/TextInputWidget.cpp
parentImprove debug messages (diff)
downloadnheko-43ec0c062467c05a66eac7a3fb992bc093315c89.tar.xz
Handle ICE failure
Diffstat (limited to 'src/TextInputWidget.cpp')
-rw-r--r--src/TextInputWidget.cpp3
1 files changed, 2 insertions, 1 deletions
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 {