diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-19 04:27:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-19 04:27:25 +0000 |
commit | c08077eef8606ebb1f4f6e7ad1a7855296da9dd1 (patch) | |
tree | 75eb3404994dfb1825d2125846e2086ca669f4c5 /gtk2_ardour | |
parent | 804f08f17eea8305cb65b731e705fd397586f3be (diff) |
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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<string> 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; } |