From 9cca6293168fe2fa6ddd798015698ff7a9d8c0d9 Mon Sep 17 00:00:00 2001
From: johns <>
Date: Mon, 1 May 2000 15:42:24 +0000
Subject: [PATCH] Fixed bug: Set of pending commands could not be canceled

---
 ui/mouse.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ui/mouse.cpp b/ui/mouse.cpp
index 675ff8495..970279f3f 100644
--- a/ui/mouse.cpp
+++ b/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;