From d8bdb736daa43303dc14ba3a550b40ba8ac9b4ef Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 9 Jul 2010 13:15:02 +0000 Subject: [PATCH] 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 --- src/dolphinpart.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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... -- 2.47.3