mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-10 09:00:42 +01:00
Windows: Add default extension to file name in save dialog (issue #1646)
This commit is contained in:
parent
c5b8b8b9c8
commit
373180fef2
@ -511,6 +511,9 @@ bool RunSaveFileDialog(const CefBrowserHostImpl::FileChooserParams& params,
|
|||||||
ofn.lpstrFilter = filter.c_str();
|
ofn.lpstrFilter = filter.c_str();
|
||||||
// Indices into |lpstrFilter| start at 1.
|
// Indices into |lpstrFilter| start at 1.
|
||||||
ofn.nFilterIndex = *filter_index + 1;
|
ofn.nFilterIndex = *filter_index + 1;
|
||||||
|
// If a filter is specified and the default file name is changed then append
|
||||||
|
// a file extension to the new name.
|
||||||
|
ofn.lpstrDefExt = L"";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool success = !!GetSaveFileName(&ofn);
|
bool success = !!GetSaveFileName(&ofn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user