summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-03-08 12:57:08 +0000
committertruelight <truelight@openttd.org>2007-03-08 12:57:08 +0000
commit70623e348819d9da33111e7b4a83bf0c7a8ce9c0 (patch)
treed74928e5c7a97d08173db19383c874844d4522b8
parent194f51eea4fcef05a3184e5be8042a28071676ed (diff)
downloadopenttd-70623e348819d9da33111e7b4a83bf0c7a8ce9c0.tar.xz
(svn r9064) -Fix [FS#663]: don't keep on scrolling for non-numeric values in settings, but require reclick
-rw-r--r--src/settings_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 7d6da0600..ce9b26aea 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -827,8 +827,8 @@ static void PatchesSelectionWndProc(Window *w, WindowEvent *e)
if (value < sdb->min) value = (sdb->flags & SGF_0ISDISABLED) ? 0 : sdb->min;
}
- /* Set up scroller timeout */
- if (value != oldvalue) {
+ /* Set up scroller timeout for numeric values */
+ if (value != oldvalue && !(sd->desc.flags & SGF_MULTISTRING)) {
WP(w,def_d).data_2 = btn * 2 + 1 + ((x >= 10) ? 1 : 0);
w->flags4 |= 5 << WF_TIMEOUT_SHL;
_left_button_clicked = false;