summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vehicle_gui.cpp5
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) {