From 8841ac03f33788b0ef33a8487e21fa8b2f38e3d0 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 2 May 2024 12:42:23 -0500 Subject: [PATCH] null check for a missing session (for LT) --- gtk2_ardour/editor_sections.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/editor_sections.cc b/gtk2_ardour/editor_sections.cc index 1fafdcf1bd..d8709e0430 100644 --- a/gtk2_ardour/editor_sections.cc +++ b/gtk2_ardour/editor_sections.cc @@ -228,6 +228,10 @@ EditorSections::scroll_row_timeout () void EditorSections::update_time_selection () { + if (!_session) { + return; + } + _view.get_selection ()->unselect_all (); Selection& selection (PublicEditor::instance ().get_selection ()); @@ -256,6 +260,10 @@ EditorSections::update_time_selection () void EditorSections::selection_changed () { + if (!_session) { + return; + } + TreeView::Selection::ListHandle_Path rows = _view.get_selection ()->get_selected_rows (); if (rows.empty ()) { return;