From cc32201e9c9842b5b47400a45612ad37dcd1ec0e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 4 Sep 2021 18:42:50 +0200 Subject: [PATCH] Keep plugin-preset dialog on top of plugin-UI --- gtk2_ardour/plugin_ui.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index b13f3683fb..cd2304d79f 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -726,6 +726,12 @@ PlugUIBase::add_plugin_setting () { NewPluginPresetDialog d (plugin, _("New Preset")); + Window* win = dynamic_cast (_bypass_button.get_toplevel ()); + d.set_keep_above (true); + if (win) { + d.set_transient_for (*win); + } + switch (d.run ()) { case Gtk::RESPONSE_ACCEPT: if (d.name().empty()) {