diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-26 23:30:48 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-26 23:30:48 +0000 |
commit | a8fbb47e0ae9a27a78a00e68117139e1cc5993f0 (patch) | |
tree | 24960bb36ef2965c08c0e4954adaa5f7609fb4fa /gtk2_ardour | |
parent | 1f8d176c1380951246e83d14d408c7515ca8b7ca (diff) |
Handle unknown plugins on loading sessions by hiding them from the user and telling them so.
git-svn-id: svn://localhost/ardour2/branches/3.0@8097 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 9 | ||||
-rw-r--r-- | gtk2_ardour/wscript | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 4c61752ead..e969f31cf1 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -106,6 +106,7 @@ typedef uint64_t microseconds_t; #include "global_port_matrix.h" #include "location_ui.h" #include "missing_file_dialog.h" +#include "missing_plugin_dialog.h" #include "i18n.h" @@ -2738,6 +2739,14 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name, goto out; } + { + list<string> const u = new_session->unknown_processors (); + if (!u.empty()) { + MissingPluginDialog d (_session, u); + d.run (); + } + } + /* Now the session been created, add the transport controls */ new_session->add_controllable(roll_controllable); new_session->add_controllable(stop_controllable); diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index ad4c1886d6..c667c7978e 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -142,6 +142,7 @@ gtk2_ardour_sources = [ 'midi_time_axis.cc', 'midi_tracer.cc', 'missing_file_dialog.cc', + 'missing_plugin_dialog.cc', 'mixer_group_tabs.cc', 'mixer_strip.cc', 'mixer_ui.cc', |