#include "gui_thread.h"
#include "timers.h"
#include "ui_config.h"
+#include "utils.h"
#include "pbd/i18n.h"
{
using namespace Menu_Helpers;
assert (_session);
- if (_session->actively_recording () || !_session->engine ().connected ()) {
- error_message_dialog (_("Port Connections are only available with active Audio/MIDI system."));
+ if (!ARDOUR_UI_UTILS::engine_is_running ()) {
+ return false;
+ }
+ if (_session->actively_recording ()) {
+ error_message_dialog (/* unused */ "");
return false;
}
}
#endif
- boost::shared_ptr<ARDOUR::RouteList> routes = _session->get_routes ();
- RouteList copy = *routes;
+ RouteList copy = _session->get_routelist ();
copy.sort (Stripable::Sorter(true));
uint32_t added = 0;
for (ARDOUR::RouteList::const_iterator i = copy.begin (); i != copy.end (); ++i) {