Simplify port add/remove error messages.

The detailed information is no longer correct with flexible routing
since pin management.
This commit is contained in:
Robin Gareus 2016-04-14 20:05:41 +02:00
parent d739d2fd64
commit c9fd0ea0ca

View file

@ -729,9 +729,7 @@ PortMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t)
if (io) { if (io) {
int const r = io->add_port ("", this, t); int const r = io->add_port ("", this, t);
if (r == -1) { if (r == -1) {
Gtk::MessageDialog msg (_("It is not possible to add a port here, as the first processor in the track or buss cannot " Gtk::MessageDialog msg (_("It is not possible to add a port here."));
"support the new configuration."
));
msg.set_title (_("Cannot add port")); msg.set_title (_("Cannot add port"));
msg.run (); msg.run ();
} }
@ -759,7 +757,7 @@ PortMatrix::remove_channel (ARDOUR::BundleChannel b)
errmsg = _("The last port cannot be removed"); errmsg = _("The last port cannot be removed");
} else { } else {
if (-1 == io->remove_port (p, this)) { if (-1 == io->remove_port (p, this)) {
errmsg = _("This port cannot be removed.\nEither the first plugin in the track or buss cannot accept\nthe new number of inputs or the last plugin has more outputs."); errmsg = _("This port cannot be removed.");
} }
} }