From 6593e615dc803820d1f94be9c5b4c84067ba088b Mon Sep 17 00:00:00 2001 From: Till Frankenbach <81414045+merydian@users.noreply.github.com> Date: Fri, 14 Jun 2024 02:48:50 -0400 Subject: [PATCH] Check for presence of _source_editor_widget Co-authored-by: Nyall Dawson --- firstaid/debugwidget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firstaid/debugwidget.py b/firstaid/debugwidget.py index 0d6f3ad..95ba57b 100644 --- a/firstaid/debugwidget.py +++ b/firstaid/debugwidget.py @@ -391,7 +391,8 @@ def current_frame_changed(self, current, previous): if 0 <= row < len(self.entries): self.go_to_frame(row) path = self.entries[row][0] - self._source_editor_widget.setFilePath(path) + if self._source_editor_widget: + self._source_editor_widget.setFilePath(path) def go_to_frame(self, index): if self._source_editor_widget: