┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dolphincolumnwidget.cpp12
-rw-r--r--src/dolphindetailsview.cpp12
-rw-r--r--src/dolphiniconsview.cpp12
3 files changed, 27 insertions, 9 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);
+ }
+ }
}
}
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);
+ }
+ }
}
}
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 96f69436d..b1ffd401c 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -297,9 +297,15 @@ void DolphinIconsView::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);
+ }
+ }
}
}