added watching channel
This commit is contained in:
@@ -154,14 +154,14 @@ void SplitHeader::scaleChangedEvent(float scale)
|
||||
|
||||
void SplitHeader::updateChannelText()
|
||||
{
|
||||
const QString channelName = this->split->getChannel()->name;
|
||||
auto channel = this->split->getChannel();
|
||||
|
||||
const QString channelName = channel->name;
|
||||
if (channelName.isEmpty()) {
|
||||
this->titleLabel->setText("<no channel>");
|
||||
return;
|
||||
}
|
||||
|
||||
auto channel = this->split->getChannel();
|
||||
|
||||
TwitchChannel *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
|
||||
|
||||
if (twitchChannel != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user