Ensure we disconnect from signals on exit in SplitHeader

This commit is contained in:
Rasmus Karlsson
2018-04-11 01:06:13 +02:00
committed by fourtf
parent b88196c81c
commit b78f357efc
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -136,9 +136,9 @@ void SplitHeader::initializeChannelSignals()
TwitchChannel *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
if (twitchChannel) {
twitchChannel->updateLiveInfo.connect([this]() {
this->managedConnections.emplace_back(twitchChannel->updateLiveInfo.connect([this]() {
this->updateChannelText(); //
});
}));
}
}