summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-10-29 20:23:17 +0000
committeryexo <yexo@openttd.org>2012-10-29 20:23:17 +0000
commit73858a75b3a9204aca7f98042e00727f5d7c7ceb (patch)
treeff8a97547e4641d6b83d3d2c0d4c5b0ccbd33ab9 /src
parentc09437196354cea8f092ac721c6f32aeea85eae8 (diff)
downloadopenttd-73858a75b3a9204aca7f98042e00727f5d7c7ceb.tar.xz
(svn r24650) -Fix (r24647, r24648): fixing logic errors is hard
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 67d383db4..c64d00619 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -1343,7 +1343,7 @@ bool SettingEntry::UpdateFilterState(StringFilter &filter, bool force_visible, R
bool visible = true;
switch (this->flags & SEF_KIND_MASK) {
case SEF_SETTING_KIND: {
- if (force_visible || !filter.IsEmpty()) {
+ if (!force_visible && !filter.IsEmpty()) {
/* Process the search text filter for this item. */
filter.ResetState();