13
0

Use AudioEngine::get_last_backend_error in message dialog when failing to start engine

If a backend is not returning AudioBackend::ErrorCode values to indicate the
type of error then the default string will be returned which is the same as
what was previously displayed.
This commit is contained in:
Tim Mayberry 2015-09-26 17:27:04 +10:00
parent d85ab8af89
commit d19605aeaa

View File

@ -4502,10 +4502,10 @@ 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, _("Could not reconnect to the Audio/MIDI engine"));
MessageDialog msg (*editor, AudioEngine::instance()->get_last_backend_error ());
msg.run ();
} else {
MessageDialog msg (_("Could not reconnect to the Audio/MIDI engine"));
MessageDialog msg (AudioEngine::instance()->get_last_backend_error ());
msg.run ();
}
return -1;