1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +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();
wxWindow *focus = wxWindow::FindFocus();
auto parent = focus->GetParent();
wxWindow *parent;
if (focus != nullptr) {
parent = focus->GetParent();
}
bool success = false;
auto cleanup = finally( [&] {