From d19605aeaa99ffebb2048feb3fe86e0fd30db4ac Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 26 Sep 2015 17:27:04 +1000 Subject: 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. --- gtk2_ardour/ardour_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 18fc273656..5b1a24859e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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; -- cgit v1.2.3