mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 04:15:46 +01:00
[Summary] Bug fix #45659 "Delete Selected track menu item is active when Master Bus is selected"
[Feature reviewed] AMishyn [Reviewed] GZharun
This commit is contained in:
parent
dc9642b928
commit
953dfb1a0c
1 changed files with 10 additions and 0 deletions
|
|
@ -1037,6 +1037,16 @@ Editor::set_selected_regionview_from_map_event (GdkEventAny* /*ev*/, StreamView*
|
|||
bool
|
||||
Editor::track_selected ()
|
||||
{
|
||||
// check if only muster bus is selected
|
||||
if ( selection->tracks.size() == 1 ) {
|
||||
TrackViewList::const_iterator i = selection->tracks.begin ();
|
||||
RouteTimeAxisView* v = dynamic_cast<RouteTimeAxisView*>(*i);
|
||||
|
||||
if ( v && v->route()->is_master() ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if( !selection->tracks.empty() )
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue