mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Consolidate internal bus checks (2/2)
This commit is contained in:
parent
3de600625f
commit
9cc966120c
15 changed files with 52 additions and 42 deletions
|
|
@ -99,10 +99,8 @@ DuplicateRouteDialog::restart (Session* s)
|
|||
|
||||
if (std::dynamic_pointer_cast<Track> (r)) {
|
||||
ntracks++;
|
||||
} else {
|
||||
if (!r->is_master() && !r->is_monitor()) {
|
||||
nbusses++;
|
||||
}
|
||||
} else if (!r->is_main_bus()) {
|
||||
nbusses++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +183,7 @@ DuplicateRouteDialog::on_response (int response)
|
|||
continue;
|
||||
}
|
||||
|
||||
if ((*s)->is_master() || (*s)->is_monitor()) {
|
||||
if ((*s)->is_main_bus ()) {
|
||||
/* no option to duplicate these */
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue