added watching channel

This commit is contained in:
fourtf
2018-04-20 19:54:45 +02:00
parent e17a7cc222
commit a16a2b0579
14 changed files with 128 additions and 45 deletions
+3 -3
View File
@@ -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) {