summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-21 21:08:01 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-21 21:08:01 +0200
commit11f220d8f469d45a62fc1d7a2b47b932c78e17af (patch)
tree012648e67cafcf8f410deb7ea015b6e9cf4f20f9 /plugingui
parent40713800cb9cddda72350363e27acc50a50b93b1 (diff)
Don't leave checkbox in middle position on double click.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/checkbox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index abb01ce..faf3741 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -42,7 +42,7 @@ GUI::CheckBox::CheckBox(Widget *parent)
void GUI::CheckBox::buttonEvent(ButtonEvent *e)
{
- if(e->direction == -1) {
+ if(e->direction == -1 || e->doubleclick) {
state = !state;
middle = false;
if(handler) handler(ptr);