Merge pull request #3234 from atom/win-remove-default-filter
Win: Remove adding default file filter(*.*) in a save dialog.
This commit is contained in:
commit
3042f604cc
1 changed files with 0 additions and 6 deletions
|
@ -34,12 +34,6 @@ bool IsDirectory(const base::FilePath& path) {
|
|||
void ConvertFilters(const Filters& filters,
|
||||
std::vector<std::wstring>* buffer,
|
||||
std::vector<COMDLG_FILTERSPEC>* filterspec) {
|
||||
if (filters.empty()) {
|
||||
COMDLG_FILTERSPEC spec = { L"All Files (*.*)", L"*.*" };
|
||||
filterspec->push_back(spec);
|
||||
return;
|
||||
}
|
||||
|
||||
buffer->reserve(filters.size() * 2);
|
||||
for (size_t i = 0; i < filters.size(); ++i) {
|
||||
const Filter& filter = filters[i];
|
||||
|
|
Loading…
Reference in a new issue