1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 06:08:40 +02:00

Fix bug 1992

This commit is contained in:
Steve Daulton 2018-10-02 22:40:10 +01:00
parent 526179b63e
commit a17af37c1e

View File

@ -4818,7 +4818,10 @@ bool MenuCommandHandler::DoEffect(
auto nTracksOriginally = project.GetTrackCount(); auto nTracksOriginally = project.GetTrackCount();
wxWindow *focus = wxWindow::FindFocus(); wxWindow *focus = wxWindow::FindFocus();
auto parent = focus->GetParent(); wxWindow *parent;
if (focus != nullptr) {
parent = focus->GetParent();
}
bool success = false; bool success = false;
auto cleanup = finally( [&] { auto cleanup = finally( [&] {