diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-09-15 19:33:13 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-09-15 19:33:13 +0000 |
| commit | 1da36c2be7f64ba0aed75ecad4a5cbb1e972f261 (patch) | |
| tree | cb4a346508ef81f68c9941de3b02168712ca1c63 /src/ui/dialog/filedialogimpl-win32.cpp | |
| parent | CI/AppVeyor: Enable tests (diff) | |
| download | inkscape-1da36c2be7f64ba0aed75ecad4a5cbb1e972f261.tar.gz inkscape-1da36c2be7f64ba0aed75ecad4a5cbb1e972f261.zip | |
Add default extension for native win32 file save dialog.
We manually appended an extension already (so functionality does
not change), however GetSaveFileNameW also adds the chosen name
(which was the name without extension before) to the list of
recently used documents which resulted in unusable links.
Diffstat (limited to 'src/ui/dialog/filedialogimpl-win32.cpp')
| -rw-r--r-- | src/ui/dialog/filedialogimpl-win32.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 4fb8089ee..7f0bf58c5 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -1781,6 +1781,7 @@ void FileSaveDialogImplWin32::GetSaveFileName_thread() ofn.lpstrFilter = _filter; ofn.nFilterIndex = _filter_index; ofn.lpfnHook = GetSaveFileName_hookproc; + ofn.lpstrDefExt = L"svg\0"; ofn.lCustData = (LPARAM)this; _result = GetSaveFileNameW(&ofn) != 0; |
