From 0e7a5235e18fdbd1582e94c36c3ec07c1190174a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 Jun 2024 13:58:30 -0600 Subject: [PATCH] MIDI tracer: don't update ports if audio engine is not running when ports_changed() is called --- gtk2_ardour/midi_tracer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/midi_tracer.cc b/gtk2_ardour/midi_tracer.cc index 22ae957ed7..1b31b0a783 100644 --- a/gtk2_ardour/midi_tracer.cc +++ b/gtk2_ardour/midi_tracer.cc @@ -166,6 +166,10 @@ MidiTracer::ports_changed () _midi_port_list->clear (); + if (!AudioEngine::instance()->running()) { + return; + } + PortManager::PortList pl; AudioEngine::instance()->get_ports (DataType::MIDI, pl);