KRun QML proxy: fix path/URL confusion
ClosedPublic

Authored by dfaure on Jul 20 2019, 2:41 PM.

Details

Summary

I'm assuming the QString argument is always a complete URL.
The only two users of this code are in extragear/base/plasma-mobile and
they pass something called url.

Test Plan

Not tested, other than building.

Diff Detail

Repository
R296 KDeclarative
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure created this revision.Jul 20 2019, 2:41 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 20 2019, 2:41 PM
Restricted Application edited subscribers, added: kde-frameworks-devel; removed: Frameworks. · View Herald Transcript
dfaure requested review of this revision.Jul 20 2019, 2:41 PM
apol added a subscriber: apol.Jul 20 2019, 5:52 PM

LGTM other than that.

src/qmlcontrols/kioplugin/krunproxy.cpp
35–36

would it make sense to use db.mimeTypeForUrl?

dfaure updated this revision to Diff 62138.Jul 20 2019, 5:57 PM

You'd think I would remember my own APIs.... :-)

apol added a comment.Jul 21 2019, 9:05 AM

You'd think I would remember my own APIs.... :-)

;-)

apol accepted this revision.Jul 22 2019, 10:17 PM
This revision is now accepted and ready to land.Jul 22 2019, 10:17 PM
This revision was automatically updated to reflect the committed changes.