null check for a missing session (for LT)

This commit is contained in:
Ben Loftis 2024-05-02 12:42:23 -05:00
parent 631ee17e34
commit a88d430609
1 changed files with 8 additions and 0 deletions

View File

@ -228,6 +228,10 @@ EditorSections::scroll_row_timeout ()
void void
EditorSections::update_time_selection () EditorSections::update_time_selection ()
{ {
if (!_session) {
return;
}
_view.get_selection ()->unselect_all (); _view.get_selection ()->unselect_all ();
Selection& selection (PublicEditor::instance ().get_selection ()); Selection& selection (PublicEditor::instance ().get_selection ());
@ -256,6 +260,10 @@ EditorSections::update_time_selection ()
void void
EditorSections::selection_changed () EditorSections::selection_changed ()
{ {
if (!_session) {
return;
}
TreeView::Selection::ListHandle_Path rows = _view.get_selection ()->get_selected_rows (); TreeView::Selection::ListHandle_Path rows = _view.get_selection ()->get_selected_rows ();
if (rows.empty ()) { if (rows.empty ()) {
return; return;