Consolidate internal bus checks (2/2)

This commit is contained in:
Robin Gareus 2023-11-27 04:26:46 +01:00
parent 3de600625f
commit 9cc966120c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
15 changed files with 52 additions and 42 deletions

View file

@ -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;
}