diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-21 21:08:01 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-21 21:08:01 +0200 |
commit | 11f220d8f469d45a62fc1d7a2b47b932c78e17af (patch) | |
tree | 012648e67cafcf8f410deb7ea015b6e9cf4f20f9 /plugingui | |
parent | 40713800cb9cddda72350363e27acc50a50b93b1 (diff) |
Don't leave checkbox in middle position on double click.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/checkbox.cc | 2 |
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); |