A couple of fixes for the MTP kio slave (2 patches)
ClosedPublic

Authored by kfunk on Jul 11 2017, 1:05 AM.

Details

Summary

mtp: Simplify code a bit

Only one branch can be taken per call, make this clear by using
if/else-if instead of a series of ifs.

mtp: Don't crash if getPath returns something invalid

This happens when you try to copy a file from a device which just got
locked again (I think...)

Diff Detail

Repository
R320 KIO Extras
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk created this revision.Jul 11 2017, 1:05 AM
elvisangelaccio accepted this revision.Jul 11 2017, 8:39 AM
This revision is now accepted and ready to land.Jul 11 2017, 8:39 AM
This revision was automatically updated to reflect the committed changes.