mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
parent
2a9b8e15c4
commit
50b2decd1b
|
@ -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]() {
|
||||
|
|
Loading…
Reference in a new issue