From 30257afd3f9725b1ac54610ef61d14d873057531 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 16 Apr 2018 21:08:30 +1100 Subject: [PATCH] Drop Down Menu: allow right clicks to dismiss the window (fixes #2910) --- src/gui/dialogs/drop_down_menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/dialogs/drop_down_menu.cpp b/src/gui/dialogs/drop_down_menu.cpp index a17dc5f88671..0abaaad95678 100644 --- a/src/gui/dialogs/drop_down_menu.cpp +++ b/src/gui/dialogs/drop_down_menu.cpp @@ -172,6 +172,9 @@ void drop_down_menu::pre_show(window& window) window.connect_signal( std::bind(&click_callback, std::ref(window), keep_open_, _3, _4, _5), event::dispatcher::front_child); + window.connect_signal( + std::bind(&click_callback, std::ref(window), keep_open_, _3, _4, _5), event::dispatcher::front_child); + // Handle embedded button toggling. // For some reason this works as a listbox value callback but don't ask me why. // - vultraz, 2017-02-17