Skip to content

Commit

Permalink
Copy undo/redo data in undo command to prevent unintended modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
soininen committed Sep 2, 2024
1 parent e7abb92 commit 56e774d
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)

Check warning on line 412 in spinetoolbox/project_commands.py

View check run for this annotation

Codecov / codecov/patch

spinetoolbox/project_commands.py#L411-L412

Added lines #L411 - L412 were not covered by tests
self.setText(f"change loop condition for jump {jump.name}")

def redo(self):
Expand Down

0 comments on commit 56e774d

Please sign in to comment.