diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index c29b98430..b2f9c44b7 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -220,8 +220,7 @@ void NotebookTab::setHighlightState(HighlightState newHighlightStyle) { return; } - if (this->highlightState_ != HighlightState::Highlighted && - this->highlightColor_ == nullptr) + if (this->highlightState_ != HighlightState::Highlighted) { this->highlightState_ = newHighlightStyle;