From 57262331c1d6d512a50a999782054cca97ed715a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 11 Oct 2013 15:58:51 -0400 Subject: [PATCH] don't use a possibly non-existent window as a transient parent when showing a dialog about engine failure --- gtk2_ardour/ardour_ui.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 3cbdfba019..2da5de6936 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3807,8 +3807,13 @@ int ARDOUR_UI::reconnect_to_engine () { if (AudioEngine::instance()->start ()) { - MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine")); - msg.run (); + if (editor) { + MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine")); + msg.run (); + } else { + MessageDialog msg (_("Could not reconnect to the Audio/MIDI engine")); + msg.run (); + } return -1; }