D29445: [KOpenWithDialog] When pointing at a non-executable file print more meaningful error

Ahmad Samir noreply at phabricator.kde.org
Fri May 29 09:51:57 BST 2020


ahmadsamir added inline comments.

INLINE COMMENTS

> kopenwithdialog.cpp:1009
> +            if (QDir::isAbsolutePath(binaryName)) {
> +                QFileInfo fi(binaryName);
> +                if (fi.exists() && !fi.isExecutable()) {

It's created on the next line. Anyway my initial comment was a nit-pick... it's a micro-optimisation for when the code goes through the if block, technically DesktopExecParser should get the absolute path in most cases.

REPOSITORY
  R241 KIO

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

To: broulik, #frameworks, #vdg
Cc: ahmadsamir, dfaure, apol, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200529/c57e1ed8/attachment-0001.htm>


More information about the Kde-frameworks-devel mailing list