[FolderModel] Simplify deleting existing drag image

Authored by broulik on Feb 26 2016, 3:18 PM.

Description

[FolderModel] Simplify deleting existing drag image

Instead of looking it up three times (contains, value, remove) we just take() which
removes the item and returns it and delete that instead.
If there is no such item Qt promises to return a null pointer which is safe to delete.

Differential Revision: https://phabricator.kde.org/D1026

Details

Committed
broulikFeb 26 2016, 3:19 PM
Differential Revision
D1026: [FolderModel] Simplify deleting existing drag image
Parents
R119:28aae4bc188c: [FolderView] Allow chosing list or icon view in popup
Branches
Unknown
Tags
Unknown