if (_route->add_redirect (redirect, this, &err_streams)) {
weird_plugin_dialog (*plugin, err_streams, _route);
} else {
+ redirect->set_active (true, 0);
redirect->active_changed.connect (bind (mem_fun (*this, &RedirectBox::show_redirect_active_r), boost::weak_ptr<Redirect>(redirect)));
}
}
/* i hate this kind of code */
- if (streams > p.get_info()->n_inputs) {
+ if (streams > (unsigned)p.get_info()->n_inputs) {
label.set_text (string_compose (_(
"You attempted to add a plugin (%1).\n"
"The plugin has %2 inputs\n"
p.name(),
p.get_info()->n_inputs,
streams));
- } else if (streams < p.get_info()->n_inputs) {
+ } else if (streams < (unsigned)p.get_info()->n_inputs) {
label.set_text (string_compose (_(
"You attempted to add a plugin (%1).\n"
"The plugin has %2 inputs\n"
plugin_ui = new PluginUIWindow (plugin_insert);
- if (_owner_is_mixer) {
- ARDOUR_UI::instance()->the_mixer()->ensure_float (*plugin_ui);
- } else {
- ARDOUR_UI::instance()->the_editor().ensure_float (*plugin_ui);
- }
-
WindowTitle title(Glib::get_application_name());
title += generate_redirect_title (plugin_insert);
plugin_ui->set_title (title.get_string());
string
RedirectBox::generate_redirect_title (boost::shared_ptr<PluginInsert> pi)
{
- string maker = pi->plugin()->maker();
+ string maker = pi->plugin()->maker() ? pi->plugin()->maker() : "";
string::size_type email_pos;
if ((email_pos = maker.find_first_of ('<')) != string::npos) {