1
0
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:
Paul Licameli
2018-01-12 16:24:54 -05:00
parent fa0fb7d8e5
commit d08ae18ca4
2 changed files with 14 additions and 6 deletions

View File

@@ -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 );
}