MegaGlest Forum

MegaGlest => Feature requests => Closed feature requests => Topic started by: Omega on 6 September 2013, 22:38:26

Title: [done] Don't prompt to save map on closing the editor if no changes were made
Post by: Omega on 6 September 2013, 22:38:26
When closing the map editor, it prompts to save the file, which is great. However, it also prompts if you have no changed the default map in any way. This is akin to a text editor prompting you to save when you haven't typed any text (and most modern text editors will not prompt for an empty file).

The method of detecting if the file has been changed varies. One method would be to compare the file to an empty map. If it's a match, the map cannot have been edited. Another method would be to set a flag the moment the user makes a change to the map. The latter would be faster, but if the user undos their change, the map is still recognized as changed, so the former method would be more accurate (if you type in a text editor, then remove the text, it won't prompt you to save, since saving an empty file is rarely desirable).
Title: Re: Don't prompt to save the map on closing the editor if no changes were made
Post by: titi on 19 September 2013, 22:24:57
all true but in my opninion not worth the effort  :-/
Title: Re: Don't prompt to save the map on closing the editor if no changes were made
Post by: softcoder on 20 September 2013, 00:08:10
Not sure which map editor you are trying but i think this was already fixed in svn. Did you try the beta map editor? When i load the editor i can close without any prompt.
Title: Re: Don't prompt to save the map on closing the editor if no changes were made
Post by: titi on 20 September 2013, 13:45:44
He was talking about making a change, then revert it and then try to save.
Title: Re: Don't prompt to save the map on closing the editor if no changes were made
Post by: Baŝto on 14 April 2014, 06:10:40
fixed