don't use a possibly non-existent window as a transient parent when showing a dialog about engine failure
This commit is contained in:
parent
a0b9751866
commit
57262331c1
|
@ -3807,8 +3807,13 @@ int
|
||||||
ARDOUR_UI::reconnect_to_engine ()
|
ARDOUR_UI::reconnect_to_engine ()
|
||||||
{
|
{
|
||||||
if (AudioEngine::instance()->start ()) {
|
if (AudioEngine::instance()->start ()) {
|
||||||
MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
|
if (editor) {
|
||||||
msg.run ();
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user