diff options
author | rubidium <rubidium@openttd.org> | 2009-10-27 19:21:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-27 19:21:42 +0000 |
commit | 8a6ddc8706cc3ab9cf278a21d0a9cd3b7c77503f (patch) | |
tree | 64051609d1a0ef7a41fea1dac0a678ee1a4f6405 /src | |
parent | 09ee4f6764890e349655e8913eb5e5f50f8cc1c1 (diff) | |
download | openttd-8a6ddc8706cc3ab9cf278a21d0a9cd3b7c77503f.tar.xz |
(svn r17889) -Feature: double click on a item in the refit list refits without the need to click on the refit button
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index df5c400e4..a3352fe23 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -372,6 +372,11 @@ struct RefitWindow : public Window { } } + virtual void OnDoubleClick(Point pt, int widget) + { + if (widget == VRW_MATRIX) this->OnClick(pt, VRW_REFITBUTTON); + } + virtual void OnClick(Point pt, int widget) { switch (widget) { |