mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-16 06:03:49 +01:00
Change details of focusing of tracks in presence of pending ones...
... Don't focus a pending changed track but remap it to the original. You can focus a pending added track.
This commit is contained in:
@@ -2866,15 +2866,15 @@ void TrackPanel::SetFocusedTrack( Track *t )
|
||||
if (t && !t->GetLinked() && t->GetLink())
|
||||
t = (WaveTrack*)t->GetLink();
|
||||
|
||||
if (t && AudacityProject::GetKeyboardCaptureHandler()) {
|
||||
if ( !mAx->SetFocus( Track::Pointer( t ) ) )
|
||||
return;
|
||||
|
||||
if (t && AudacityProject::GetKeyboardCaptureHandler())
|
||||
AudacityProject::ReleaseKeyboard(this);
|
||||
}
|
||||
|
||||
if (t) {
|
||||
if (t)
|
||||
AudacityProject::CaptureKeyboard(this);
|
||||
}
|
||||
|
||||
mAx->SetFocus( Track::Pointer( t ) );
|
||||
Refresh( false );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user