13
0

TransportMasterWidget may not have a session

Other parts in this dialog already test for session == nullptr.
This can happen in the Preferences, when switching a timecode
master w/o a session (not possible in Ardour, but some derivative
project).
This commit is contained in:
Robin Gareus 2024-05-13 23:11:27 +02:00
parent c3eb30d96b
commit caae3501ec
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -124,8 +124,10 @@ TransportMastersWidget::~TransportMastersWidget ()
void
TransportMastersWidget::set_transport_master (std::shared_ptr<TransportMaster> tm)
{
if (_session) {
_session->request_sync_source (tm);
}
}
void
TransportMastersWidget::current_changed (std::shared_ptr<TransportMaster> old_master, std::shared_ptr<TransportMaster> new_master)