┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
-rw-r--r--src/dolphincolumnwidget.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp
index 5f5f761dc..f8db0e865 100644
--- a/src/dolphincolumnwidget.cpp
+++ b/src/dolphincolumnwidget.cpp
@@ -349,9 +349,15 @@ void DolphinColumnWidget::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);
+ }
+ }
}
}