mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 14:46:34 +01:00
fail to create Monitor section if port-names are not unique
We should still prevent a user from naming a route "Monitor", but since "Monitor" is a translatable string, this is an i18n safeguard. eg. - create a session with a mon-section and a track Монитор. - send the session to a friend in Russia.
This commit is contained in:
parent
6f038a61b5
commit
9fcc48d140
1 changed files with 4 additions and 1 deletions
|
|
@ -1028,10 +1028,13 @@ Session::add_monitor_section ()
|
||||||
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
|
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
|
||||||
// boost_debug_shared_ptr_mark_interesting (r.get(), "Route");
|
// boost_debug_shared_ptr_mark_interesting (r.get(), "Route");
|
||||||
#endif
|
#endif
|
||||||
{
|
try {
|
||||||
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
|
||||||
r->input()->ensure_io (_master_out->output()->n_ports(), false, this);
|
r->input()->ensure_io (_master_out->output()->n_ports(), false, this);
|
||||||
r->output()->ensure_io (_master_out->output()->n_ports(), false, this);
|
r->output()->ensure_io (_master_out->output()->n_ports(), false, this);
|
||||||
|
} catch (...) {
|
||||||
|
error << _("Cannot create monitor section. 'Monitor' Port name is not unique.") << endmsg;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rl.push_back (r);
|
rl.push_back (r);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue