Skip to content
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

Closed
dg0yt opened this issue Dec 1, 2020 · 0 comments
Closed

No error reporting for template saving #1790

dg0yt opened this issue Dec 1, 2020 · 0 comments

Comments

@dg0yt
Copy link
Member

dg0yt commented Dec 1, 2020

Actual behaviour

When saving a template file (scribbling, GPX) fails,

  • the error is not reported.
  • the dirty state is reset anyway.

Expected behaviour

The error should be reported.
The dirty state must be maintained.

Configuration

Mapper Version: v0.9.4

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).
@dg0yt dg0yt closed this as completed in 18202a2 Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant