SHA256
1
0
forked from pool/audacity
audacity/0001-Fix-bug-1992.patch

26 lines
907 B
Diff
Raw Normal View History

From a17af37c1ef9a4611add492d8ba02d1dfb270210 Mon Sep 17 00:00:00 2001
From: Steve Daulton <stevedaulton@gmail.com>
Date: Tue, 2 Oct 2018 22:40:10 +0100
Subject: [PATCH] Fix bug 1992
---
src/Menus.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: audacity-Audacity-2.3.0/src/Menus.cpp
===================================================================
--- audacity-Audacity-2.3.0.orig/src/Menus.cpp 2018-09-20 16:35:07.000000000 +0200
+++ audacity-Audacity-2.3.0/src/Menus.cpp 2018-10-03 16:36:27.684154542 +0200
@@ -4572,7 +4572,10 @@ bool AudacityProject::DoEffect(const Plu
TrackListIterator iter(GetTracks());
Track *t = iter.First();
wxWindow *focus = wxWindow::FindFocus();
- auto parent = focus->GetParent();
+ wxWindow *parent;
+ if (focus != nullptr) {
+ parent = focus->GetParent();
+ }
bool success = false;
auto cleanup = finally( [&] {