Bug 386883 - Missing file extension when exporting to file
Summary: Missing file extension when exporting to file
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (show other bugs)
Version: latest
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-13 22:46 UTC by Uwe Stöhr
Modified: 2017-11-14 22:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.5


Attachments
export to file window without preset file extension (128.74 KB, image/jpeg)
2017-11-13 22:48 UTC, Uwe Stöhr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Stöhr 2017-11-13 22:46:57 UTC
- create a plot
- use the menu File -> Export

The predefined export format is PDF.

- now click the button behind the File name field to specify a path and filename for the PDF export

result: Instead of the PDF export window a generic one named "Export to file" (see attached) pops up. There you cannot set a file type.

- thus enter "test.pdf"

This works but since the specified file format is PDF, the export window should have the .pdf extension as preset.
Comment 1 Uwe Stöhr 2017-11-13 22:48:01 UTC
Created attachment 108846 [details]
export to file window without preset file extension
Comment 2 Alexander Semke 2017-11-14 22:36:09 UTC
Git commit d62aecf679f2b74c8617a39d3bbb0377ad6aabda by Alexander Semke.
Committed on 14/11/2017 at 22:34.
Pushed by asemke into branch 'master'.

In ExportWorksheetDialog:
1. show the file filter in the OpenFileDialog according to the selected output format
2. don't crash if PNG was selected.
FIXED-IN: 2.5

M  +14   -5    src/kdefrontend/worksheet/ExportWorksheetDialog.cpp

https://commits.kde.org/labplot/d62aecf679f2b74c8617a39d3bbb0377ad6aabda