mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-25 08:58:06 +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() );
|
||||
}
|
||||
|
||||
mFocusedTrack = track;
|
||||
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
if( track )
|
||||
@ -105,8 +106,6 @@ std::shared_ptr<Track> TrackPanelAx::SetFocus( std::shared_ptr<Track> track )
|
||||
}
|
||||
#endif
|
||||
|
||||
mFocusedTrack = track;
|
||||
|
||||
return track;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user