D26516: [Icon Item] Check URL validity and scheme

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Jan 8 09:39:35 GMT 2020


broulik created this revision.
broulik added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  Creating a `KFileItemList` with a `KFileItem` with a URL that doesn't have a scheme triggers an assert in `KFileItemListProperties`.
  It doesn't really make sense to have anyway.

TEST PLAN
  - Created an icon item with a desktop file with a `URL=foo`, no longer quit plasmashell when right clicking.
  
  Instead, the menu is empty now. Open with actions for proper files still work

REPOSITORY
  R120 Plasma Workspace

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

AFFECTED FILES
  applets/icon/iconapplet.cpp

To: broulik, #plasma
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200108/f2c0c237/attachment.html>


More information about the Plasma-devel mailing list