mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kioslave: match the service name to the URL filename in NetworkSlave::stat()
fixes MIME type determination of service entries Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e1729bdbb5
commit
c1264fd30f
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ void NetworkSlave::stat(const KUrl &url)
|
||||||
error(KIO::ERR_SLAVE_DEFINED, m_kdnssd->errorString());
|
error(KIO::ERR_SLAVE_DEFINED, m_kdnssd->errorString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const QString urlfilename = url.fileName();
|
||||||
foreach (const KDNSSDService &kdnssdservice, m_kdnssd->services()) {
|
foreach (const KDNSSDService &kdnssdservice, m_kdnssd->services()) {
|
||||||
// qDebug() << Q_FUNC_INFO << kdnssdservice.url << url.prettyUrl();
|
if (kdnssdservice.name == urlfilename) {
|
||||||
if (kdnssdservice.url == url.prettyUrl()) {
|
|
||||||
const QString servicemimetype = mimeForService(kdnssdservice);
|
const QString servicemimetype = mimeForService(kdnssdservice);
|
||||||
KIO::UDSEntry kioudsentry;
|
KIO::UDSEntry kioudsentry;
|
||||||
kioudsentry.insert(KIO::UDSEntry::UDS_NAME, kdnssdservice.name);
|
kioudsentry.insert(KIO::UDSEntry::UDS_NAME, kdnssdservice.name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue