-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error reporting for template saving #1790
Comments
dg0yt
added a commit
that referenced
this issue
Dec 2, 2020
Before this change, template data saving was done while saving template XML configuration. This worked only for the default file format, and it delayed finishing the writing of the map file until all modified templates were saved. This behaviour meant increasing the risk of losing changes to the map, due to crash or forceful termination (out-of-memory, or Android). In Exporter::doExport(), it is now easy to catch errors from saving template data and add messages the to the list of warnings. Resolves GH-1790 (No error reporting from template saving). Resolves GH-1791 (Template data saved only for default file format).
dg0yt
added a commit
that referenced
this issue
Dec 2, 2020
Before this change, template data saving was done while saving template XML configuration. This worked only for the default file format, and it delayed finishing the writing of the map file until all modified templates were saved. This behaviour meant increasing the risk of losing changes to the map, due to crash or forceful termination (out-of-memory, or Android). In Exporter::doExport(), it is now easy to catch errors from saving template data and add messages the to the list of warnings. Resolves GH-1790 (No error reporting from template saving). Resolves GH-1791 (Template data saved only for default file format).
dg0yt
added a commit
that referenced
this issue
Dec 2, 2020
Before this change, template data saving was done while saving template XML configuration. This worked only for the default file format, and it delayed finishing the writing of the map file until all modified templates were saved. This behaviour meant increasing the risk of losing changes to the map, due to crash or forceful termination (out-of-memory, or Android). In Exporter::doExport(), it is now easy to catch errors from saving template data and add messages the to the list of warnings. Resolves GH-1790 (No error reporting from template saving). Resolves GH-1791 (Template data saved only for default file format).
dg0yt
added a commit
that referenced
this issue
Dec 3, 2020
Before this change, template data saving was done while saving template XML configuration. This worked only for the default file format, and it delayed finishing the writing of the map file until all modified templates were saved. This behaviour meant increasing the risk of losing changes to the map, due to crash or forceful termination (out-of-memory, or Android). In Exporter::doExport(), it is now easy to catch errors from saving template data and add messages the to the list of warnings. Resolves GH-1790 (No error reporting from template saving). Resolves GH-1791 (Template data saved only for default file format).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actual behaviour
When saving a template file (scribbling, GPX) fails,
Expected behaviour
The error should be reported.
The dirty state must be maintained.
Configuration
Mapper Version: v0.9.4
The text was updated successfully, but these errors were encountered: