summaryrefslogtreecommitdiff
path: root/libs/ardour/transport_master.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-10 11:56:00 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-10 11:56:00 -0600
commitbc638c04963f55eecb6ebc1512d3219007739f75 (patch)
tree1fd554813e73c8a35e4d617a1d9a34f6a7181b43 /libs/ardour/transport_master.cc
parentf827294b0b2ca674fdf6807417944518e6f0f849 (diff)
create transport master in the factory method if the engine is running
This fixes the GUI thinking there is no port because it is notified about the TM before the port is created
Diffstat (limited to 'libs/ardour/transport_master.cc')
-rw-r--r--libs/ardour/transport_master.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/transport_master.cc b/libs/ardour/transport_master.cc
index e68f52e373..739395efdb 100644
--- a/libs/ardour/transport_master.cc
+++ b/libs/ardour/transport_master.cc
@@ -401,6 +401,9 @@ TransportMaster::factory (SyncSource type, std::string const& name, bool removea
}
if (tm) {
+ if (AudioEngine::instance()->running()) {
+ tm->create_port ();
+ }
tm->set_removeable (removeable);
}