summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/widgets/ardour_dropdown.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/widgets/ardour_dropdown.cc b/libs/widgets/ardour_dropdown.cc
index 822d1fdb26..573b808414 100644
--- a/libs/widgets/ardour_dropdown.cc
+++ b/libs/widgets/ardour_dropdown.cc
@@ -83,6 +83,11 @@ ArdourDropdown::on_button_press_event (GdkEventButton* ev)
void
ArdourDropdown::set_active (std::string const& text)
{
+ const MenuItem* current_active = _menu.get_active();
+ if (current_active && current_active->get_label() == text) {
+ set_text (text);
+ return;
+ }
using namespace Menu_Helpers;
const MenuList& items = _menu.items ();
int c = 0;