diff options
| author | David Faure <[email protected]> | 2009-04-07 12:45:02 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2009-04-07 12:45:02 +0000 |
| commit | 9b80bddc7be9b41f8daba83095ef0d186e612b2c (patch) | |
| tree | 90458ed76ef2f5b8aef91e6b51107cfb7b22b0f0 /src/dolphinpart.cpp | |
| parent | 6358214ee72699795413504a3e39ab4227b14337 (diff) | |
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
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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, |
