Fix potential bug when showing plugin-menu in different contexts

This fixes `gtk_menu_attach_to_widget(): menu already attached`
after first showing the context menu in a mixer's processor
box, and later in a different context (regionFX, I/O plugins,
route properties,..) in optimized builds.
This commit is contained in:
Robin Gareus
2025-10-05 19:15:09 +02:00
parent 7790384507
commit 4a51f4f350

View File

@@ -914,6 +914,9 @@ struct PluginMenuCompareByCreator {
Gtk::Menu*
PluginSelector::plugin_menu()
{
if (_plugin_menu->get_attach_widget ()) {
_plugin_menu->detach ();
}
return _plugin_menu;
}