From e8140d8248a0d3b262aa749e1fb8ddc548a4b3b0 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Sun, 21 Jun 2015 20:03:24 +0200 Subject: [PATCH] fix gui2::ttoogle_panel previously toggle panels did not did work if you clicked to a label or a image inside the toggle panel. (you had to click 'dirctly' to the toggle panel in order to work properly) --- src/gui/widgets/toggle_panel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/toggle_panel.cpp b/src/gui/widgets/toggle_panel.cpp index 78d4f6de2ecc..fb03e7640caf 100644 --- a/src/gui/widgets/toggle_panel.cpp +++ b/src/gui/widgets/toggle_panel.cpp @@ -48,12 +48,13 @@ ttoggle_panel::ttoggle_panel() &ttoggle_panel::signal_handler_mouse_enter, this, _2, _3)); connect_signal(boost::bind( &ttoggle_panel::signal_handler_mouse_leave, this, _2, _3)); - +#if 0 connect_signal( boost::bind(&ttoggle_panel::signal_handler_pre_left_button_click, this, _2), event::tdispatcher::back_pre_child); +#endif connect_signal(boost::bind( &ttoggle_panel::signal_handler_left_button_click, this, _2, _3)); connect_signal(