diff options
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 2d33875f6..c0551701e 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -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); |