mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 14:18:41 +02:00
Fix bug 1992
This commit is contained in:
parent
526179b63e
commit
a17af37c1e
@ -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( [&] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user