Skip to content

Commit 86ae74a

Browse files
committed
Bug fix
1 parent 6ef041a commit 86ae74a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/source/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Glossary
3737
Releases
3838
---------------------
3939

40+
v3.0.3
41+
====================
42+
- Fixed "Loading from JSON template causes live object reference to be lost".
43+
4044
v3.0.2
4145
====================
4246
- Fixed AutoGUILD not sending messages (events emitted prematurely).

src/daf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
from .remote import *
1818

1919

20-
VERSION = "3.0.2"
20+
VERSION = "3.0.3"

src/daf_gui/object.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ def new_object_frame_with_values(class_, widget, *args, **kwargs):
618618

619619
def load(self, old_data: ObjectInfo):
620620
data = old_data.data
621+
if self.old_gui_data is not None: # Preserve the old reference, even if reloading data
622+
old_data.real_object = self.old_gui_data.real_object
623+
621624
for attr, (widget, types_) in self._map.items():
622625
if attr not in data:
623626
continue

0 commit comments

Comments
 (0)