openstreetmap / merkaartor

Home of Merkaartor, an openstreetmap mapping program.
http://merkaartor.be/
Other
290 stars 79 forks source link

wrong reminder after upload #277

Open fkv1 opened 1 year ago

fkv1 commented 1 year ago

When I save to an .mdc file and later upload my changes, and if then the upload is successfull, I get a message box that suggests to save the file after the upload. This doesn't make any sense because the changes can't be uploaded a second time. A reminder would be better before the upload, just in case something goes wrong during the upload (e.g. Merkaartor crashes). But still I don't see why the reminder only comes if an .mdc file has previously been saved. I suggest to remove the reminder altogether, or to remind the user to save or upload when a certain number (e.g. 1000) of dirty objects have accumulated since the previous save or upload. Even better would be an autosave function. The interval (time or number of dirty objects) and filename would need to be configured in the settings.

Krakonos commented 2 days ago

The reminder is there for a reason. I guess I should explain that in the dialog. The issue is, the document contains information on what data is dirty and what was uploaded. If you save, upload, open the saved document, the changes already uploaded are still marked dirty and when re-uploaded, they will create duplicate geometry in case of new objects.