1
0
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:
Steve Daulton 2018-09-06 20:31:35 +01:00
parent b8891702a8
commit ad19ca0fa2

View File

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