diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index 5cc218eac..311d7d3ca 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -204,10 +204,11 @@ void SplitContainer::addSplit(Split *split) if (this->tab_ != nullptr) { this->tab_->setHighlightState(state); - } - if (color != nullptr) - { - this->tab_->setHighlightColor(color); + + if (color != nullptr) + { + this->tab_->setHighlightColor(color); + } } });