diff --git a/Orange/widgets/settings.py b/Orange/widgets/settings.py index 4204f2a25b4..8599b43d3b2 100644 --- a/Orange/widgets/settings.py +++ b/Orange/widgets/settings.py @@ -663,9 +663,11 @@ def pack_data(self, widget): """Call the inherited method, then add local contexts to the dict.""" data = super().pack_data(widget) self.settings_from_widget(widget) - for context in widget.context_settings: + context_settings = [copy.copy(context) for context in + widget.context_settings] + for context in context_settings: context.values[VERSION_KEY] = self.widget_class.settings_version - data["context_settings"] = widget.context_settings + data["context_settings"] = context_settings return data def update_defaults(self, widget):