From: David Faure Date: Fri, 9 Jul 2010 13:15:02 +0000 (+0000) Subject: Fix another problem with the network:/ ioslave: don't keep the mimetype when clicking... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d8bdb736daa43303dc14ba3a550b40ba8ac9b4ef 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 --- 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...