Check tabHighlightRequested color in safer scope

The little bit that set the tab's highlight color never checked whether
the tab was a nullptr or not
i'm a little silly
This commit is contained in:
tuckerrrrrrrrrrrr 2020-03-15 07:11:16 -07:00
parent 2a9b8e15c4
commit 50b2decd1b

View file

@ -204,11 +204,12 @@ void SplitContainer::addSplit(Split *split)
if (this->tab_ != nullptr)
{
this->tab_->setHighlightState(state);
}
if (color != nullptr)
{
this->tab_->setHighlightColor(color);
}
}
});
split->getChannelView().liveStatusChanged.connect([this]() {