Fix a bug with twitch channels and the livestatusChanged signal

This commit is contained in:
Rasmus Karlsson 2018-11-10 14:30:19 +01:00
parent 57069c609a
commit 0f9ef9d0aa

View file

@ -550,9 +550,9 @@ void ChannelView::setChannel(ChannelPtr newChannel)
// Notifications
if (auto tc = dynamic_cast<TwitchChannel *>(newChannel.get()))
{
tc->liveStatusChanged.connect([this]() {
this->connections_.push_back(tc->liveStatusChanged.connect([this]() {
this->liveStatusChanged.invoke(); //
});
}));
}
}