Set FileDialog::nameFilters to an appropriate value

Bug #1673022 reported by Chris Coulson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
Triaged
High
Santosh

Bug Description

There is a TODO in the file dialog implementation:

+ // TODO: Find correct mapping from mimetypes to namefilter.
+ // nameFilters does filtering of file based on file extension and
+ // no clear mapping available from mimetypes to file extension, so allow
+ // all files to avoid any inconsistency as of now.
+ nameFilters: ["All files (*)"]

This can use net::GetExtensionsForMimeType. I don't think there's a Qt API for it (or, at least I couldn't find one).

Also, the descriptions "All files" and any additional ones (like "Images" or "Videos") need to be localized.

Changed in oxide:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Santosh (santoshbit2007)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.