1
0
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:
Paul Licameli
2018-03-14 09:37:08 -04:00
parent 49eb7ddb61
commit 83c30620cb

View File

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