https://bugs.kde.org/show_bug.cgi?id=381561

--- Comment #6 from Kai Uwe Broulik <k...@privat.broulik.de> ---
When I try to save an image now, it defaults to ".bin" extension for that file,
instead of "webP" or "jpeg" despite the fact that chrome suggests .webp or .jpg
extension.

Chrome's source code has the following code:

// Add the *.* filter, but only if we have added other filters (otherwise it
// is implied).
if (file_types_.include_all_files && !file_types_.extensions.empty())
  filter_set.insert("application/octet-stream");
// Create the final output string.
filter_string.clear();
for (std::set<std::string>::iterator it = filter_set.begin();
     it != filter_set.end(); ++it) {
  filter_string.append(*it + " ");
}

So they deliberately add it as "All files" filter. With QFileDialog I get a
ComboBox with "Unknown" (selected) and "JPEG image", before the port I got an
editable ComboBox with just JPEG image in it. It doesn't always have an
"Unknown", though, for text/html Chrome doesn't add application/octet-stream
for some reason.

Any particular reason this went into 17.04 bugfix branch and not master as file
dialog stuff tends to break severly whenever someone touches it :/

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to