diff options
| author | David Faure <[email protected]> | 2010-07-09 13:15:02 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2010-07-09 13:15:02 +0000 |
| commit | d8bdb736daa43303dc14ba3a550b40ba8ac9b4ef (patch) | |
| tree | a3077ba8221a744d58138c1ecba514f56a6be991 /src/dolphinpart.cpp | |
| parent | 42ba5dfd4b88bf2574d9edde60c7b57d87881ea5 (diff) | |
Fix another problem with the network:/ ioslave: don't keep the mimetype when clicking on an item with a target_url
svn path=/trunk/KDE/kdebase/apps/; revision=1147967
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 519d05741..2dec262e1 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -347,7 +347,11 @@ void DolphinPart::slotRequestItemInfo(const KFileItem& item) void DolphinPart::slotItemTriggered(const KFileItem& item) { KParts::OpenUrlArguments args; - args.setMimeType(item.mimetype()); + // Forget about the known mimetype if a target URL is used. + // Testcase: network:/ with a item (mimetype "inode/some-foo-service") pointing to a http URL (html) + if (item.targetUrl() == item.url()) { + args.setMimeType(item.mimetype()); + } // Ideally, konqueror should be changed to not require trustedSource for directory views, // since the idea was not to need BrowserArguments for non-browser stuff... |
