diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-28 15:19:39 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-28 15:19:39 +0100 |
commit | df28a71252f4593c65ec03611586dfc8a62a834f (patch) | |
tree | 090ff09fe285741185bde274f58b66350beb57ee /gtk2_ardour/ardour_ui.cc | |
parent | 0805b6b92570a52da277159d633a597c06d017e2 (diff) |
Consolidate API, prefer ->running()
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a86d9ac9b5..2de87e0904 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1595,7 +1595,7 @@ ARDOUR_UI::update_sample_rate (samplecnt_t) ENSURE_GUI_THREAD (*this, &ARDOUR_UI::update_sample_rate, ignored) - if (!AudioEngine::instance()->connected()) { + if (!AudioEngine::instance()->running()) { snprintf (buf, sizeof (buf), "%s", _("Audio: <span foreground=\"red\">none</span>")); @@ -1898,7 +1898,7 @@ ARDOUR_UI::open_recent_session () bool ARDOUR_UI::check_audioengine (Gtk::Window& parent) { - if (!AudioEngine::instance()->connected()) { + if (!AudioEngine::instance()->running()) { MessageDialog msg (parent, string_compose ( _("%1 is not connected to any audio backend.\n" "You cannot open or close sessions in this condition"), |