Fix crash when moving splits across windows and closing parent tab (#2259)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user