mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 17:38:10 +02:00
TrackPanelAx::SetFocus - minor fix
Fix for bug introduced by commit fb18f6a: mFocusedTrack needs to be updated before the focus event is sent to ensure that when TrackPanelAx::GetState is called, mFocusedTrack is the focused track.
This commit is contained in:
parent
69ab49c3a4
commit
27f706bb2c
@ -84,6 +84,7 @@ std::shared_ptr<Track> TrackPanelAx::SetFocus( std::shared_ptr<Track> track )
|
|||||||
track = Track::Pointer( iter.First() );
|
track = Track::Pointer( iter.First() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mFocusedTrack = track;
|
||||||
|
|
||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
if( track )
|
if( track )
|
||||||
@ -105,8 +106,6 @@ std::shared_ptr<Track> TrackPanelAx::SetFocus( std::shared_ptr<Track> track )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mFocusedTrack = track;
|
|
||||||
|
|
||||||
return track;
|
return track;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user