From 11f220d8f469d45a62fc1d7a2b47b932c78e17af Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 21 May 2013 21:08:01 +0200 Subject: Don't leave checkbox in middle position on double click. --- plugingui/checkbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3