mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Fix for bug 1972
This commit is contained in:
parent
b8891702a8
commit
ad19ca0fa2
@ -4572,6 +4572,7 @@ bool AudacityProject::DoEffect(const PluginID & ID, const CommandContext &WXUNUS
|
||||
TrackListIterator iter(GetTracks());
|
||||
Track *t = iter.First();
|
||||
wxWindow *focus = wxWindow::FindFocus();
|
||||
auto parent = focus->GetParent();
|
||||
|
||||
bool success = false;
|
||||
auto cleanup = finally( [&] {
|
||||
@ -4641,7 +4642,7 @@ bool AudacityProject::DoEffect(const PluginID & ID, const CommandContext &WXUNUS
|
||||
// mTrackPanel->Refresh(false);
|
||||
}
|
||||
RedrawProject();
|
||||
if (focus != nullptr) {
|
||||
if (focus != nullptr && focus->GetParent()==parent) {
|
||||
focus->SetFocus();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user