From: David Faure Date: Tue, 7 Apr 2009 12:45:02 +0000 (+0000) Subject: We don't know the mimetype here, so better not set it at all, konq will determine it. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9b80bddc7be9b41f8daba83095ef0d186e612b2c We don't know the mimetype here, so better not set it at all, konq will determine it. Better than setting inode/directory for everything due to the wrong S_IFDIR. Fixes "foo is a file but a dir was expected" error when doing MMB on a file. svn path=/trunk/KDE/kdebase/apps/; revision=950518 --- diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index dbc9d7932..8fda67df6 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -342,10 +342,7 @@ void DolphinPart::createNewWindow(const KUrl& url) { // TODO: Check issue N176832 for the missing QAIV signal; task 177399 - maybe this code // should be moved into DolphinPart::slotItemTriggered() - KFileItem item(S_IFDIR, (mode_t)-1, url); - KParts::OpenUrlArguments args; - args.setMimeType(item.mimetype()); - emit m_extension->createNewWindow(url, args); + emit m_extension->createNewWindow(url); } void DolphinPart::slotOpenContextMenu(const KFileItem& _item,