Use AudioEngine::get_last_backend_error in message dialog when failing to start engine
authorTim Mayberry <mojofunk@gmail.com>
Sat, 26 Sep 2015 07:27:04 +0000 (17:27 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 30 Sep 2015 23:10:19 +0000 (09:10 +1000)
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

index 18fc273656e9f05828995c2c6b753f0359f0826f..5b1a24859e07d518e7de2a5d22245ddf869caca7 100644 (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;