mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix crash when moving splits across windows and closing parent tab (#2259)
This commit is contained in:
parent
bf4c9cebb1
commit
277ef4b2e3
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue