┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index 75481fb36..3f23795ba 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -377,9 +377,15 @@ void DolphinDetailsView::keyPressEvent(QKeyEvent* event)
const QModelIndex currentIndex = selModel->currentIndex();
const bool trigger = currentIndex.isValid()
&& (event->key() == Qt::Key_Return)
- && (selModel->selectedIndexes().count() <= 1);
- if (trigger) {
- triggerItem(currentIndex);
+ && (selModel->selectedIndexes().count() > 0);
+ if(trigger) {
+ const QModelIndexList indexList = selModel->selectedIndexes();
+ foreach (const QModelIndex &index, indexList) {
+ KFileItem item = itemForIndex(index);
+ if (!item.isNull()) {
+ triggerItem(index);
+ }
+ }
}
}