From 855947baec01a77f18c8c3cee8c0af000131b71e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Apr 2014 20:41:04 +0300 Subject: Fix close dropdowns on item selection. --- src/gui/widgets/widget.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index 236c7b6ee..86b203666 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -1009,9 +1009,15 @@ class Widget : public Widget2 */ virtual void showPart(const Rect &rectangle); - bool isAllowLogic() const + bool isAllowLogic() const A_WARN_UNUSED { return mAllowLogic; } + void setMouseConsume(const bool b) + { mMouseConsume = b; } + + bool isMouseConsume() const A_WARN_UNUSED + { return mMouseConsume; } + protected: /** * Distributes an action event to all action listeners @@ -1222,6 +1228,8 @@ class Widget : public Widget2 bool mAllowLogic; + bool mMouseConsume; + /** * Holds the global font used by the widget. */ -- cgit v1.2.3-60-g2f50