mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -124,7 +124,9 @@ TransportMastersWidget::~TransportMastersWidget ()
|
|||
void
|
||||
TransportMastersWidget::set_transport_master (std::shared_ptr<TransportMaster> tm)
|
||||
{
|
||||
_session->request_sync_source (tm);
|
||||
if (_session) {
|
||||
_session->request_sync_source (tm);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue