Opened 15 years ago
Closed 13 years ago
#4077 closed defect (fixed)
[patch] Unsaved changes pops up when closing josm after undoing all changes
Reported by: | Daeron | Owned by: | team |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: | dieterdreist, jstein |
Description (last modified by )
If there are some modifications made to the data, and all of them are undone, josm still pops up a dialog asking about "unsaved changes" when closing josm. However, if the same layer is deleted, the dialog doesn't appear.
Attachments (2)
Change History (9)
comment:1 by , 14 years ago
comment:3 by , 13 years ago
Description: | modified (diff) |
---|---|
Summary: | Usaved changes pops up when closing josm after undoing all changes → Unsaved changes pops up when closing josm after undoing all changes |
typo
comment:5 by , 13 years ago
Cc: | added |
---|
by , 13 years ago
Attachment: | 4077.patch added |
---|
by , 13 years ago
Attachment: | new-layer-modify.patch added |
---|
comment:6 by , 13 years ago
Summary: | Unsaved changes pops up when closing josm after undoing all changes → [patch] Unsaved changes pops up when closing josm after undoing all changes |
---|
Patch attached (4077.patch), which hides the "Unsaved changes" dialog if JOSM is to be closed and the data of the layer isn't modified. Works like the delete action in the layer dialog. Unfortunately, the issue with the asterisk in the window title still remains.
There was another problem, which I fixed with patch new-layer-modify.patch: if only new primitives were created in a layer, the data in this layer wasn't marked as modified. I changed this, so that the addition of new primitives marks them as modified. Because I'm new to JOSM development, could some long-term dev review this approach, please?
Ticket #6509 has been marked as a duplicate of this ticket.