13
0

Use AudioSetupDialog as parent of the error message popup when failing to start engine

Without a session loaded this makes the message dialog appear in front of the
AudioSetup dialog instead of randomly up in the top left somewhere. This does
mean though that if the AudioSetup dialog is not visible the error message
popup will appear randomly up in the top left(at least on windows, it seems
fine on linux) but I will fix that shortly.
This commit is contained in:
Tim Mayberry 2015-09-26 17:49:16 +10:00
parent dcf327f86a
commit 2768ce9b05

View File

@ -4501,13 +4501,8 @@ ARDOUR_UI::reconnect_to_engine ()
{
if (AudioEngine::instance()->start ()) {
// TODO somehow make this the topmost window (above any dialogs currently visible)
if (editor) {
MessageDialog msg (*editor, AudioEngine::instance()->get_last_backend_error ());
msg.run ();
} else {
MessageDialog msg (AudioEngine::instance()->get_last_backend_error ());
msg.run ();
}
MessageDialog msg(*audio_midi_setup.get(), AudioEngine::instance()->get_last_backend_error());
msg.run();
return -1;
}