diff options
| author | David Faure <[email protected]> | 2008-01-04 14:40:31 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-01-04 14:40:31 +0000 |
| commit | ac2e0e2d5464707f42b403d49327aef4d4f3f63b (patch) | |
| tree | c2b44a1dcf5d0a1f54ade862ecca166fad573213 | |
| parent | dc62d3840bea2aed95e75fc3429647f06dbd3774 (diff) | |
Make it possible to run applications from the applications:/ kioslave again.
svn path=/branches/KDE/4.0/kdebase/apps/; revision=757231
| -rw-r--r-- | src/dolphinpart.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 3a1e6f72c..155884bfa 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -277,6 +277,14 @@ void DolphinPart::slotRequestItemInfo(const KFileItem& item) void DolphinPart::slotItemTriggered(const KFileItem& item) { + KParts::OpenUrlArguments args; + 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... + KParts::BrowserArguments browserArgs; + browserArgs.trustedSource = true; + // MMB click support. // TODO: this doesn't work, mouseButtons() is always 0. // Issue N176832 for the missing QAIV signal; task 177399 @@ -284,9 +292,7 @@ void DolphinPart::slotItemTriggered(const KFileItem& item) if (QApplication::mouseButtons() & Qt::MidButton) { kDebug() << "MMB!!" << item.mimetype(); if (item.mimeTypePtr()->is("inode/directory")) { - KParts::OpenUrlArguments args; - args.setMimeType( item.mimetype() ); - emit m_extension->createNewWindow( item.url(), args ); + emit m_extension->createNewWindow(item.url(), args); } else { kDebug() << "run()"; item.run(); @@ -294,7 +300,7 @@ void DolphinPart::slotItemTriggered(const KFileItem& item) } else { // Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted] kDebug() << "LMB"; - emit m_extension->openUrlRequest(item.url()); + emit m_extension->openUrlRequest(item.url(), args, browserArgs); } } |
