summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-09-15 19:33:13 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-09-15 19:33:13 +0000
commit1da36c2be7f64ba0aed75ecad4a5cbb1e972f261 (patch)
treecb4a346508ef81f68c9941de3b02168712ca1c63 /src
parentCI/AppVeyor: Enable tests (diff)
downloadinkscape-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')
-rw-r--r--src/ui/dialog/filedialogimpl-win32.cpp1
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;