mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Fix Mac build, and avoid global variable ::GetActiveProject()
This commit is contained in:
@@ -718,9 +718,7 @@ wxAccStatus TrackPanelAx::Select(int childId, wxAccSelectionFlags selectFlags)
|
|||||||
if (t) {
|
if (t) {
|
||||||
mTrackPanel->SetFocusedTrack(t);
|
mTrackPanel->SetFocusedTrack(t);
|
||||||
mTrackPanel->EnsureVisible(t);
|
mTrackPanel->EnsureVisible(t);
|
||||||
AudacityProject* p = GetActiveProject();
|
mTrackPanel->MakeParentModifyState(false);
|
||||||
if (p)
|
|
||||||
p->ModifyState(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user