Modify

Opened 15 years ago

Closed 15 years ago

#3200 closed defect (fixed)

Unsaved changes dialog should be shown only when layer is backed by a file

Reported by: dieterdreist Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: upload data warning alert close Cc:

Description

I uploaded my modifications, there was no error, but when I try to close, it says: "there are unsaved changes". I tried to reupload, but: "no modifications to upload", afterwards still the same error on exit (unsaved changes).

Attachments (0)

Change History (9)

comment:1 by stoecker, 15 years ago

Resolution: wontfix
Status: newclosed

Correct. The upload process itself causes changes in the data set. If I remember correctly the warning text also tells this.

in reply to:  1 comment:2 by dieterdreist, 15 years ago

Keywords: data warning alert close added
Priority: majorminor
Resolution: wontfix
Status: closedreopened

Replying to stoecker:

Correct. The upload process itself causes changes in the data set. If I remember correctly the warning text also tells this.

This is possible, but it is definitely a bug: there shouldn't be the alert for dataloss on close if there is no data you "loose". This dialog should be suppressed, if the only change you did is having uploaded a changeset. Otherwise the dialog is of no use anymore: it will give you an alert everytime you close (and previously uploaded at least one time), not regarding whether you loose data or not.

comment:3 by Gubaer, 15 years ago

There *is* data you loose. When you upload the server assigns new IDs and modifies the state of your primitives. Now you have these changes in your local dataset and your layer might be assigend to a file and for *this* file you have unsafed data.

will give you an alert everytime you close (and previously uploaded at least one time), not regarding whether you loose data or not.

No, not everytime. If you save locally there won't be an asterix (*) in the title bar and if you quit JOSM you won't get a warning.

I see just one optimiziation here: for data layers which aren't linked to a file one could indeed suppress the warning.

in reply to:  3 comment:4 by dieterdreist, 15 years ago

Replying to Gubaer:

There *is* data you loose. When you upload the server assigns new IDs and modifies the state of your primitives. Now you have these changes in your local dataset and your layer might be assigend to a file and for *this* file you have unsafed data.

will give you an alert everytime you close (and previously uploaded at least one time), not regarding whether you loose data or not.

No, not everytime. If you save locally there won't be an asterix (*) in the title bar and if you quit JOSM you won't get a warning.

I see just one optimiziation here: for data layers which aren't linked to a file one could indeed suppress the warning.

OK; I hadn't thought of people saving to local disc. So the message is correct if there is a file associated. I agree though that the message should be suppressed if no file is associated.

comment:5 by Gubaer, 15 years ago

Summary: after upload still unsaved changes?Suppress warning of unsafed data when quiting in one specific situation
Type: defectenhancement

comment:6 by Daeron, 15 years ago

Priority: minormajor
Summary: Suppress warning of unsafed data when quiting in one specific situationUnsaved changes dialog should be shown only when layer is backed by a file
Type: enhancementdefect

The unsaved changes dialog only pops up if there has been some editing done in the session, whether the data has been uploaded or not. But if new data has been downloaded but not edited, the dialog never appears and the downloaded data is lost (from the file).

I suggest that every time a new data is downloaded, the layer is marked unsaved, but the dialog is only shown, if the data was originally loaded from a file (or merged with a layer loaded from a file).

That way the dialog would be much more useful, as now it annoys when you just have downloaded data from the server and done some modifications and sent them back, but if you just wanted to download more data to a saved file, the dialog never appears.

comment:7 by anonymous, 15 years ago

Of course the warning (or another warning) should stay if you downloaded some data, made some changes, and didn't upload the changes again so far. In this case, the layer isn't backed by a file.

comment:8 by RussNelson, 15 years ago

This is a defect and needs to be fixed. If you *only* download from the API, make a change, and (successfully) upload, then you shouldn't be prompted to save it to a file.

comment:9 by Gubaer, 15 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r2025

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.