diff options
| author | Emmanuel Pescosta <[email protected]> | 2012-12-13 22:54:09 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2012-12-13 22:54:09 +0100 |
| commit | 3535a20207245cf8b1325ada9007469d0d1c3ec7 (patch) | |
| tree | 1a59a4703377877584b283c7f5c3f506f3cf7737 /src/dolphinpart.cpp | |
| parent | e348bc58267b3dc06f2fc044f9e5ce5a5dfcd087 (diff) | |
Fix Bug 304299 - Dolphin launches multiple instances of a program when multiple files are selected
BUG: 304299
REVIEW: 107305
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index ccc91fd7d..627ba79c5 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -90,6 +90,8 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL this, SLOT(slotErrorMessage(QString))); connect(m_view, SIGNAL(itemActivated(KFileItem)), this, SLOT(slotItemActivated(KFileItem))); + connect(m_view, SIGNAL(itemsActivated(KFileItemList)), + this, SLOT(slotItemsActivated(KFileItemList))); connect(m_view, SIGNAL(tabRequested(KUrl)), this, SLOT(createNewWindow(KUrl))); connect(m_view, SIGNAL(requestContextMenu(QPoint,KFileItem,KUrl,QList<QAction*>)), @@ -367,6 +369,13 @@ void DolphinPart::slotItemActivated(const KFileItem& item) emit m_extension->openUrlRequest(item.targetUrl(), args, browserArgs); } +void DolphinPart::slotItemsActivated(const KFileItemList& items) +{ + foreach (const KFileItem& item, items) { + slotItemActivated(item); + } +} + void DolphinPart::createNewWindow(const KUrl& url) { // TODO: Check issue N176832 for the missing QAIV signal; task 177399 - maybe this code |
