diff --git a/gtk2_ardour/script_selector.cc b/gtk2_ardour/script_selector.cc index 3fab40a5e7..31cea38338 100644 --- a/gtk2_ardour/script_selector.cc +++ b/gtk2_ardour/script_selector.cc @@ -113,6 +113,7 @@ void ScriptSelector::refresh () { LuaScripting::instance ().refresh (); + _script.reset (); _scripts = LuaScripting::instance ().scripts (_script_type); setup_list (); } diff --git a/gtk2_ardour/script_selector.h b/gtk2_ardour/script_selector.h index 810aafb800..b249cfe273 100644 --- a/gtk2_ardour/script_selector.h +++ b/gtk2_ardour/script_selector.h @@ -39,7 +39,7 @@ private: Gtk::Label _author; Gtk::Label _description; - ARDOUR::LuaScriptList & _scripts; + ARDOUR::LuaScriptList _scripts; ARDOUR::LuaScriptInfoPtr _script; ARDOUR::LuaScriptInfo::ScriptType _script_type; sigc::connection _combocon;