Skip to content

Commit

Permalink
Check for presence of _source_editor_widget
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <[email protected]>
  • Loading branch information
merydian and nyalldawson authored Jun 14, 2024
1 parent 7721fbb commit 6593e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firstaid/debugwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6593e61

Please sign in to comment.