Just set UDSEntry::UDS_NAME to the actual directory name instead of the hardcoded string "folder" and don't set UDSEntry::UDS_DISPLAY_NAME at all
ClosedPublic

Authored by eduisters on Jan 13 2019, 1:53 PM.

Details

Summary

There is no reason to set UDSEntry::UDS_NAME to "folder" and then override it with UDSEntry::UDS_DISPLAY_NAME

Test Plan

Apply patch, click android device in dolphin's Devices list
Verify phones sdcards are listed as befor

Diff Detail

Repository
R224 KDE Connect
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
eduisters created this revision.Jan 13 2019, 1:53 PM
Restricted Application added a project: KDE Connect. · View Herald TranscriptJan 13 2019, 1:53 PM
Restricted Application added a subscriber: kdeconnect. · View Herald Transcript
eduisters requested review of this revision.Jan 13 2019, 1:53 PM
albertvaka accepted this revision.Jan 16 2019, 12:05 PM
albertvaka added a subscriber: albertvaka.

Makes sense. Probably this was copied-and-pasted from another KIOslave.

kio/kiokdeconnect.cpp
92

It can still be accessed through kdeconnect:// without a device id following.

This revision is now accepted and ready to land.Jan 16 2019, 12:05 PM
This revision was automatically updated to reflect the committed changes.