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:
parent
d85ab8af89
commit
d19605aeaa
@ -4502,10 +4502,10 @@ ARDOUR_UI::reconnect_to_engine ()
|
|||||||
if (AudioEngine::instance()->start ()) {
|
if (AudioEngine::instance()->start ()) {
|
||||||
// TODO somehow make this the topmost window (above any dialogs currently visible)
|
// TODO somehow make this the topmost window (above any dialogs currently visible)
|
||||||
if (editor) {
|
if (editor) {
|
||||||
MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
|
MessageDialog msg (*editor, AudioEngine::instance()->get_last_backend_error ());
|
||||||
msg.run ();
|
msg.run ();
|
||||||
} else {
|
} else {
|
||||||
MessageDialog msg (_("Could not reconnect to the Audio/MIDI engine"));
|
MessageDialog msg (AudioEngine::instance()->get_last_backend_error ());
|
||||||
msg.run ();
|
msg.run ();
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user