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,10 +204,11 @@ void SplitContainer::addSplit(Split *split)
|
||||||
if (this->tab_ != nullptr)
|
if (this->tab_ != nullptr)
|
||||||
{
|
{
|
||||||
this->tab_->setHighlightState(state);
|
this->tab_->setHighlightState(state);
|
||||||
}
|
|
||||||
if (color != nullptr)
|
if (color != nullptr)
|
||||||
{
|
{
|
||||||
this->tab_->setHighlightColor(color);
|
this->tab_->setHighlightColor(color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue