From 56e774dc8ed528360d5ae004cdaaca33e6561088 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Mon, 2 Sep 2024 14:49:25 +0300 Subject: [PATCH] Copy undo/redo data in undo command to prevent unintended modifications Re #2925 --- spinetoolbox/project_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spinetoolbox/project_commands.py b/spinetoolbox/project_commands.py index d6f818797..e32c5bc9f 100644 --- a/spinetoolbox/project_commands.py +++ b/spinetoolbox/project_commands.py @@ -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):