diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-11 15:58:51 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-11 15:58:51 -0400 |
commit | 57262331c1d6d512a50a999782054cca97ed715a (patch) | |
tree | 88c25ed280322cbb1d6ee7dc6081cc2a4aea7c5a /gtk2_ardour | |
parent | a0b975186686b2be4e609a70f12f81073b4784de (diff) |
don't use a possibly non-existent window as a transient parent when showing a dialog about engine failure
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 9 |
1 files 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; } |