Diffusion KIO 9b12a872da35

[KRun] Check mime type for isExecutableFile first

Authored by broulik on Sep 2 2019, 1:36 PM.

Description

[KRun] Check mime type for isExecutableFile first

The mime type is passed into the function, so it's already known. Checking mime type inheritance then is quick.
This avoids accessing the file in QFileInfo::isExecutable() potentially blocking just to then realize it's none
of the mime types we care about.

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

Details

Committed
broulikSep 2 2019, 1:36 PM
Differential Revision
D23660: [KRun] Check mime type for isExecutableFile first
Parents
R241:a9f8aeb11776: Add an icon for the trash root and a proper label
Branches
Unknown
Tags
Unknown