From 50b2decd1baaf15cf345e478a57eb6a7c6ba2d46 Mon Sep 17 00:00:00 2001 From: tuckerrrrrrrrrrrr Date: Sun, 15 Mar 2020 07:11:16 -0700 Subject: [PATCH] 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 --- src/widgets/splits/SplitContainer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); + } } });