diff --git a/src/widgets/chatwidgetheader.cpp b/src/widgets/chatwidgetheader.cpp index 7060de0ac..fe510e4b2 100644 --- a/src/widgets/chatwidgetheader.cpp +++ b/src/widgets/chatwidgetheader.cpp @@ -85,19 +85,17 @@ void ChatWidgetHeader::updateChannelText() auto channel = this->chatWidget->getChannel(); twitch::TwitchChannel *twitchChannel = dynamic_cast(channel.get()); - - if (channel->isEmpty()) { + + if (twitchChannel != nullptr && twitchChannel->isLive) { this->channelNameLabel.setText(QString::fromStdString(channelName) + " (live)"); - if (twitchChannel != nullptr) { - this->setToolTip("" - "

" + - twitchChannel->streamStatus + "

" + - twitchChannel->streamGame + "
" - "Live for " + - twitchChannel->streamUptime + " with " + - twitchChannel->streamViewerCount + " viewers" - "

"); - } + this->setToolTip("" + "

" + + twitchChannel->streamStatus + "

" + + twitchChannel->streamGame + "
" + "Live for " + + twitchChannel->streamUptime + " with " + + twitchChannel->streamViewerCount + " viewers" + "

"); } else { this->channelNameLabel.setText(QString::fromStdString(channelName)); this->setToolTip("");