From ffb488a8c1053c4dc23c75cd8d7a1c79958a2027 Mon Sep 17 00:00:00 2001 From: johns <> Date: Mon, 1 May 2000 14:42:24 +0000 Subject: [PATCH] Fixed bug: Set of pending commands could not be canceled --- src/ui/mouse.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/mouse.cpp b/src/ui/mouse.cpp index 675ff8495..970279f3f 100644 --- a/src/ui/mouse.cpp +++ b/src/ui/mouse.cpp @@ -870,6 +870,13 @@ global void UIHandleButtonDown(int b) } return; } + if( CursorOn==CursorOnButton ) { + // FIXME: other buttons? + if( ButtonUnderCursor>9 ) { + DoButtonButtonClicked(ButtonUnderCursor-10); + return; + } + } ClearStatusLine(); ClearCosts(); CursorState=CursorStatePoint;