diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-09-26 17:49:16 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-10-01 09:10:19 +1000 |
commit | 2768ce9b051398e504604ca2663fa087bd3eab75 (patch) | |
tree | 9be416a1ca71ab4769be4cbb6099819af7b5cf9c /gtk2_ardour/ardour_ui.cc | |
parent | dcf327f86aa4fad565f39e1cd88cc99644e88ee9 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 5b1a24859e..ee356fb2a9 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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; } |