From 8a6ddc8706cc3ab9cf278a21d0a9cd3b7c77503f Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 27 Oct 2009 19:21:42 +0000 Subject: [PATCH] (svn r17889) -Feature: double click on a item in the refit list refits without the need to click on the refit button --- src/vehicle_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index df5c400e43..a3352fe237 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) {