Skip to content

Commit

Permalink
Prevent potential issues with undoing/redoing changes to loop conditi…
Browse files Browse the repository at this point in the history
…ons (#2926)
  • Loading branch information
soininen authored Sep 4, 2024
2 parents d855292 + 56e774d commit 27d5f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinetoolbox/project_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ def __init__(self, project, jump, jump_properties, condition):
self._jump_properties = jump_properties
self._jump_source = jump.source
self._jump_destination = jump.destination
self._condition = condition
self._previous_condition = jump.condition
self._condition = dict(condition)
self._previous_condition = dict(jump.condition)
self.setText(f"change loop condition for jump {jump.name}")

def redo(self):
Expand Down

0 comments on commit 27d5f5d

Please sign in to comment.