summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-27 19:58:31 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-27 19:58:31 +0000
commit0bc6a319f10f3e7a285af627e5983bd86f6ec847 (patch)
tree97744a177a2474b0c442fed1529504ade6a6193d /gtk2_ardour/processor_box.cc
parent47de938e998ffceb0d9cfa829b47dad721445dc9 (diff)
Don't close the plugin manager when an incompatible plugin is selected. Fixes #1194.
git-svn-id: svn://localhost/ardour2/branches/3.0@7006 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index 4b34bd0f68..e5d479b9ab 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -742,7 +742,8 @@ ProcessorBox::choose_plugin ()
_get_plugin_selector()->set_interested_object (*this);
}
-void
+/** @return true if an error occurred, otherwise false */
+bool
ProcessorBox::use_plugins (const SelectedPlugins& plugins)
{
for (SelectedPlugins::const_iterator p = plugins.begin(); p != plugins.end(); ++p) {
@@ -757,6 +758,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
if (_route->add_processor (processor, _placement, &err_streams)) {
weird_plugin_dialog (**p, err_streams);
+ return true;
// XXX SHAREDPTR delete plugin here .. do we even need to care?
} else {
@@ -765,12 +767,14 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
}
}
}
+
+ return false;
}
void
ProcessorBox::weird_plugin_dialog (Plugin& p, Route::ProcessorStreams streams)
{
- ArdourDialog dialog (_("ardour: weird plugin dialog"));
+ ArdourDialog dialog (_("Plugin Incompatibility"));
Label label;
string text = string_compose(_("You attempted to add the plugin \"%1\" at index %2.\n"),