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:
parent
c3eb30d96b
commit
caae3501ec
@ -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)
|
||||||
{
|
{
|
||||||
|
if (_session) {
|
||||||
_session->request_sync_source (tm);
|
_session->request_sync_source (tm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user