[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#910203: patch



o.k. and there's the patch.

Klaumi

-----------
Klaus-Michael Klingsporn 
mail: klaumikli@gmx.de
web: www.klaumikli.de

--- audacity.orig/src/Menus.cpp	
+++ audacity/src/Menus.cpp	
@@ -4572,8 +4572,11 @@
    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( [&] {
 

Reply to: