Skip to content

Commit

Permalink
Do not set previous record in selection changed callback when it is d…
Browse files Browse the repository at this point in the history
…estroyed [PREVIEW] (#265)

PJAZZ-1095
  • Loading branch information
nicoe authored Jun 29, 2023
1 parent 72342e8 commit b682e7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tryton/gui/window/view_form/view/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,8 @@ def __select_changed(self, tree_sel):
def do_selection_changed():
previous_record = self.record
if (previous_record
and previous_record not in previous_record.group):
and (previous_record not in previous_record.group
or previous_record.destroyed)):
previous_record = None

# Because do_selection_changed is call through an idle_add it can
Expand Down

0 comments on commit b682e7b

Please sign in to comment.