mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kioslave: update comment in file slave
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6820e4e63c
commit
f34328e051
1 changed files with 2 additions and 3 deletions
|
@ -652,9 +652,8 @@ bool FileProtocol::createUDSEntry(const QString &filename, const QByteArray &pat
|
|||
|
||||
notype:
|
||||
if (details > 1) {
|
||||
// In real "remote" slaves, this is usually done using findByNameAndContent
|
||||
// after receiving some data. But we don't know how much data the mimemagic rules
|
||||
// need, so for local files, better use findByPath with mode.
|
||||
// In real "remote" slaves, this usually depends on the protocol but not here - it can be
|
||||
// determined from content, path or mode
|
||||
KMimeType::Ptr mt = KMimeType::findByPath(filename, buff.st_mode);
|
||||
entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, mt->name());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue