13
0

don't use a possibly non-existent window as a transient parent when showing a dialog about engine failure

This commit is contained in:
Paul Davis 2013-10-11 15:58:51 -04:00
parent a0b9751866
commit 57262331c1

View File

@ -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;
}