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,7 +124,9 @@ TransportMastersWidget::~TransportMastersWidget ()
void void
TransportMastersWidget::set_transport_master (std::shared_ptr<TransportMaster> tm) TransportMastersWidget::set_transport_master (std::shared_ptr<TransportMaster> tm)
{ {
_session->request_sync_source (tm); if (_session) {
_session->request_sync_source (tm);
}
} }
void void