From 1ec82e44a0ec44a3d342a68b42b318e4413410dc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jun 2012 23:07:29 +0300 Subject: Fix double click support in gui class. Add double click support to inventory and storage windows. --- src/gui/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index f513c31a1..afced01b2 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -581,3 +581,9 @@ void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button, } } } + +void Gui::resetClickCount() +{ + mClickCount = 1; + mLastMousePressTimeStamp = 0; +} -- cgit v1.2.3-60-g2f50