Fix crash when clicking on tempo or meter in main clock to edit with no Session
This commit is contained in:
parent
b8da99b5e2
commit
6847b59721
@ -92,6 +92,7 @@ MainClock::display_delta_to_edit_cursor ()
|
||||
void
|
||||
MainClock::edit_current_tempo ()
|
||||
{
|
||||
if (!PublicEditor::instance().session()) return;
|
||||
ARDOUR::TempoSection ts = PublicEditor::instance().session()->tempo_map().tempo_section_at (absolute_time());
|
||||
PublicEditor::instance().edit_tempo_section (&ts);
|
||||
}
|
||||
@ -99,6 +100,7 @@ MainClock::edit_current_tempo ()
|
||||
void
|
||||
MainClock::edit_current_meter ()
|
||||
{
|
||||
if (!PublicEditor::instance().session()) return;
|
||||
ARDOUR::MeterSection ms = PublicEditor::instance().session()->tempo_map().meter_section_at (absolute_time());
|
||||
PublicEditor::instance().edit_meter_section (&ms);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user