From 5e25722d9ad54afa6e9a6ad8c390199e705c056c Mon Sep 17 00:00:00 2001 From: tuckerrrrrrrrrrrr Date: Sun, 16 Feb 2020 09:45:11 -0800 Subject: [PATCH] remove pointless condition in setHighlightState I put it there last night and I think I forgot about it :) --- src/widgets/helper/NotebookTab.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;