summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-09-26 17:27:04 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-10-01 09:10:19 +1000
commitd19605aeaa99ffebb2048feb3fe86e0fd30db4ac (patch)
tree9e68b8725d45d0d7582c534b2ef006731accf171
parentd85ab8af89b1efd47622fb04a5d8407416c9db19 (diff)
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.
-rw-r--r--gtk2_ardour/ardour_ui.cc4
1 files 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;