summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-17 23:07:29 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-17 23:07:29 +0300
commit1ec82e44a0ec44a3d342a68b42b318e4413410dc (patch)
treef3010c20fd90440c81921c612267d8a58e4f1ee3 /src/gui/gui.cpp
parent1f66ae673801e76f3574944628a7980b9bfbabda (diff)
downloadplus-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.gz
plus-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.bz2
plus-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.xz
plus-1ec82e44a0ec44a3d342a68b42b318e4413410dc.zip
Fix double click support in gui class.
Add double click support to inventory and storage windows.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
1 files changed, 6 insertions, 0 deletions
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;
+}