Cleanup: simplify some boolean expressions

This commit is contained in:
Rubidium
2021-06-16 23:21:21 +02:00
committed by rubidium42
parent 357af686dc
commit 281a65b3e1
9 changed files with 17 additions and 25 deletions

View File

@@ -868,7 +868,7 @@ public:
this->fios_items_shown[i] = this->string_filter.GetState();
if (this->fios_items_shown[i]) items_shown_count++;
if (&(this->fios_items[i]) == this->selected && this->fios_items_shown[i] == false) {
if (&(this->fios_items[i]) == this->selected && !this->fios_items_shown[i]) {
/* The selected element has been filtered out */
this->selected = nullptr;
this->OnInvalidateData(SLIWD_SELECTION_CHANGES);