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

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

Description

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

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...)

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

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

Details

Committed
kfunkJul 11 2017, 9:24 AM
Reviewer
elvisangelaccio
Differential Revision
D6620: A couple of fixes for the MTP kio slave (2 patches)
Parents
R320:bdd0e54ee303: mtp: Simplify code a bit
Branches
Unknown
Tags
Unknown