D27865: [KFileFilterCombo] Don't add inavlid QMimeType to mime filter

Ahmad Samir noreply at phabricator.kde.org
Thu Mar 5 11:29:24 GMT 2020


ahmadsamir created this revision.
ahmadsamir added reviewers: Frameworks, dfaure, meven, sitter, broulik.
Herald added a project: Frameworks.
ahmadsamir requested review of this revision.

REVISION SUMMARY
  When setting the mime filter, check that the QMimeType we get from
  QMimeDatabase::mimeTypeForName() is valid before adding it to the mime
  filter list. This fixes a bug where if the QMimeType is invalid its name
  (and comment) property is empty, leading to empty entries in the filter
  widget drop-down menu.
  
  BUG: 417355
  
  FIXED-IN: 5.68

TEST PLAN
  - Open gwenview -> file -> open and check the filter drown-down menu there are a couple (two?) empty entries
  - Apply diff and try again, no empty entries

REPOSITORY
  R241 KIO

BRANCH
  l-kfilefiltercombo (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D27865

AFFECTED FILES
  src/filewidgets/kfilefiltercombo.cpp

To: ahmadsamir, #frameworks, dfaure, meven, sitter, broulik
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200305/000098de/attachment.html>


More information about the Kde-frameworks-devel mailing list