dd848a1963
KDE Applications - please review OBS-URL: https://build.opensuse.org/request/show/443354 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kio-extras5?expand=0&rev=29
20 lines
809 B
Diff
20 lines
809 B
Diff
diff --git a/mtp/kio_mtp.cpp b/mtp/kio_mtp.cpp
|
|
index 8a9b26e..7003968 100644
|
|
--- a/mtp/kio_mtp.cpp
|
|
+++ b/mtp/kio_mtp.cpp
|
|
@@ -347,6 +347,14 @@ void MTPSlave::listDir(const QUrl &url)
|
|
entry.clear();
|
|
}
|
|
|
|
+ // We also need a writable UDSEntry for "."
|
|
+ KIO::UDSEntry entry;
|
|
+ entry.insert(KIO::UDSEntry::UDS_NAME, QStringLiteral("."));
|
|
+ entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
|
|
+ entry.insert(KIO::UDSEntry::UDS_SIZE, 0);
|
|
+ entry.insert(KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH);
|
|
+ listEntry(entry);
|
|
+
|
|
finished();
|
|
|
|
qCDebug(LOG_KIO_MTP) << "[SUCCESS] Files";
|