┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-01-04 14:52:24 +0000
committerDavid Faure <[email protected]>2008-01-04 14:52:24 +0000
commit7bdfc2600908b72fbf790e6b96f8ca6de997931a (patch)
treec2b44a1dcf5d0a1f54ade862ecca166fad573213 /src/dolphinpart.cpp
parentdc62d3840bea2aed95e75fc3429647f06dbd3774 (diff)
forwardport r757231
Make it possible to run applications from the applications:/ kioslave again. svn path=/trunk/KDE/kdebase/apps/; revision=757239
Diffstat (limited to 'src/dolphinpart.cpp')
-rw-r--r--src/dolphinpart.cpp14
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);
}
}