mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Revert "Preliminaries to support better interaction of undo and recording"
This reverts commit6e75ae58ac, reversing changes made to714d53e00f.
This commit is contained in:
@@ -131,14 +131,8 @@ bool TrackPanelAx::IsFocused( Track *track )
|
||||
if( !focusedTrack )
|
||||
focusedTrack = SetFocus();
|
||||
|
||||
// Remap track pointer if there are oustanding pending updates
|
||||
auto origTrack =
|
||||
mTrackPanel->GetTracks()->FindById( track->GetId() );
|
||||
if (origTrack)
|
||||
track = origTrack;
|
||||
|
||||
if( ( track == focusedTrack.get() ) ||
|
||||
( focusedTrack && track == focusedTrack->GetLink() ) )
|
||||
( track == focusedTrack->GetLink() ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -148,8 +142,6 @@ bool TrackPanelAx::IsFocused( Track *track )
|
||||
|
||||
int TrackPanelAx::TrackNum( const std::shared_ptr<Track> &target )
|
||||
{
|
||||
// Find 1-based position of the target in the visible tracks, or 0 if not
|
||||
// found
|
||||
TrackListIterator iter( mTrackPanel->GetTracks() );
|
||||
Track *t = iter.First();
|
||||
int ndx = 0;
|
||||
|
||||
Reference in New Issue
Block a user