Commit 4d599528 by Eduard Braun

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. (cherry picked from commit 1da36c2b)
parent 764c4b83
Pipeline #11816269 passed with stage
......@@ -1785,6 +1785,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment