Summary: | Manpage ioslave uses profile with navbar displayed | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Nick Leverton <nick> |
Component: | man | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Nick Leverton
2003-05-15 01:54:40 UTC
the ioslave can't select konqueror profiles, it simply delivers files. I can however confirm, that info:gcc selects web browsing, while man:gcc selects file management in konqueror. Subject: kdelibs/kio/kio CVS commit by faure: If the protocol says it returns always e.g. text/html, then trust it. As discussed with coolo (and my patch is more readable than his :) CCMAIL: 58505-done@bugs.kde.org M +9 -5 kmimetype.cpp 1.163 --- kdelibs/kio/kio/kmimetype.cpp #1.162:1.163 @@ -225,4 +225,5 @@ KMimeType::Ptr KMimeType::findByURL( con if ( !_is_local_file || _fast_mode ) { + QString def = KProtocolInfo::defaultMimetype( _url ); if ( path.endsWith( slash ) || path.isEmpty() ) { @@ -231,12 +232,15 @@ KMimeType::Ptr KMimeType::findByURL( con // of redirections (e.g. freshmeat downloads). // Assume inode/directory otherwise. - QString def = KProtocolInfo::defaultMimetype( _url ); return mimeType( def.isEmpty() ? QString::fromLatin1("inode/directory") : def ); } + if ( !def.isEmpty() && def != defaultMimeType() ) + { + // The protocol says it always returns a given mimetype (e.g. text/html for "man:") + return mimeType( def ); } // No more chances for non local URLs - if ( !_is_local_file || _fast_mode ) return mimeType( defaultMimeType() ); + } // Do some magic for local files |