Fix crash when moving splits across windows and closing parent tab (#2259)

This commit is contained in:
pajlada 2020-12-06 15:34:40 +01:00 committed by GitHub
parent bf4c9cebb1
commit 277ef4b2e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View file

@ -53,6 +53,7 @@
- Bugfix: Fix a bug that caused `Ignore page` to fall into an infinity loop with an empty pattern and regex enabled (#2125)
- Bugfix: Fix a crash caused by FrankerFaceZ responding with invalid emote links (#2191)
- Bugfix: Fix a freeze caused by ignored & replaced phrases followed by Twitch Emotes (#2231)
- Bugfix: Fix a crash bug that occurred when moving splits across windows and closing the "parent tab" (#2249, #2259)
- Dev: Updated minimum required Qt framework version to 5.12. (#2210)
## 2.2.2

View file

@ -211,19 +211,19 @@ void SplitContainer::addSplit(Split *split)
this->refreshTab();
split->getChannelView().tabHighlightRequested.connect(
[this](HighlightState state) {
if (this->tab_ != nullptr)
{
this->tab_->setHighlightState(state);
}
});
this->managedConnect(split->getChannelView().tabHighlightRequested,
[this](HighlightState state) {
if (this->tab_ != nullptr)
{
this->tab_->setHighlightState(state);
}
});
split->getChannelView().liveStatusChanged.connect([this]() {
this->managedConnect(split->getChannelView().liveStatusChanged, [this]() {
this->refreshTabLiveStatus();
});
split->focused.connect([this, split] {
this->managedConnect(split->focused, [this, split] {
this->setSelected(split);
});