From c08077eef8606ebb1f4f6e7ad1a7855296da9dd1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 19 Nov 2009 04:27:25 +0000 Subject: [PATCH] do not load presets while resetting the popdown string list in a plugin GUI git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6129 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/plugin_ui.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 17c806f915..f38776d55c 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -437,8 +437,8 @@ PlugUIBase::save_plugin_setting () to the list. */ - set_popdown_strings (preset_combo, plugin->get_presets()); no_load_preset = true; + set_popdown_strings (preset_combo, plugin->get_presets()); preset_combo.set_active_text (name); no_load_preset = false; } @@ -481,6 +481,8 @@ void PlugUIBase::update_presets () { vector presets = plugin->get_presets(); + no_load_preset = true; + set_popdown_strings (preset_combo, plugin->get_presets()); string current_preset = plugin->current_preset(); @@ -492,4 +494,6 @@ PlugUIBase::update_presets () } } } + + no_load_preset = false; }