Replace extension with the one in filter

This commit is contained in:
Cheng Zhao 2016-03-14 17:08:32 +09:00
parent 81a16b424f
commit c2797e1864

View file

@ -208,7 +208,7 @@ base::FilePath FileChooserDialog::AddExtensionForFilename(
return path;
}
return path.AddExtension(extensions[0]);
return path.ReplaceExtension(extensions[0]);
}