Skip to content

Commit

Permalink
Repristinate correct showing of status NEW
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Sep 29, 2024
1 parent d3fda64 commit 6c46808
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/teksi_wastewater/interlis/gui/editors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ def update_state(self):
self.status = Editor.UNKNOWN

# For modified use the session is_modified method (slower but more correct)
if self.session.is_modified(self.obj):
if (
self.status != Editor.NEW
and self.status != Editor.DELETED
and self.session.is_modified(self.obj)
):
self.status = Editor.MODIFIED

self.validate()
Expand Down

0 comments on commit 6c46808

Please sign in to comment.