]> cloud.milkyroute.net Git - dolphin.git/commit
Filter json-only KFileItemAction plugins by mimetype
authorElvis Angelaccio <elvis.angelaccio@kdemail.net>
Tue, 23 Aug 2016 15:58:48 +0000 (17:58 +0200)
committerElvis Angelaccio <elvis.angelaccio@kdemail.net>
Tue, 23 Aug 2016 16:06:40 +0000 (18:06 +0200)
commit809ba746952c9768de0163153215d95bd233f5c6
tree9520de72ce570399151513983581e6143bf15069
parent438ede27dc86938275d4ea1d8bd57b1e174f6053
Filter json-only KFileItemAction plugins by mimetype

Commit d48b733 introduced support for kfileitemaction plugins with json
metadata, but forgot to filter them by the commonMimeType (like
KMimeTypeTrader::query() does with old-style plugins).

So we need to load a plugin only when commonMimeType is equal to (or child of) one
of the mimetypes supported by the plugin.
src/dolphincontextmenu.cpp