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

improve logic for choosing style type when exporting raster style (fix #35944) #36774

Merged
merged 1 commit into from
May 28, 2020
Merged

improve logic for choosing style type when exporting raster style (fix #35944) #36774

merged 1 commit into from
May 28, 2020

Conversation

alexbruy
Copy link
Contributor

@alexbruy alexbruy commented May 27, 2020

Description

Now, when user tries to save raster style to SLD and entered filename without .sld extension in the save dialog, style will be exported as QML even if SLD filter is selected.

Proposed PR changes logic to rely only on the selected filter to determine style type (QML or SLD). So if for example SLD filter is selected but file name has .qml extension style will be exported as SLD and file will have suffix .qml.sld.

Fixes #35944.

@alexbruy alexbruy added GUI/UX Related to QGIS application GUI or User Experience Bug Either a bug report, or a bug fix. Let's hope for the latter! backport release-3_10 labels May 27, 2020
@alexbruy
Copy link
Contributor Author

Probably we even should not rely on the manually entered extension and only take into account selected file filter.

@github-actions github-actions bot added this to the 3.14.0 milestone May 27, 2020
@nyalldawson
Copy link
Collaborator

Probably we even should not rely on the manually entered extension and only take into account selected file filter.

That sounds good!

@alexbruy
Copy link
Contributor Author

alexbruy commented May 28, 2020

Ok, chnaged to use only file filter to determine style type. First comment also updated to reflect changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting raster style to SLD only works when output file has .sld suffix
2 participants