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();
|
||||
// Indices into |lpstrFilter| start at 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);
|
||||
|
|
Loading…
Reference in New Issue