summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-01-03 09:52:17 (GMT)
committerEike Hein <hein@kde.org>2017-01-03 09:52:17 (GMT)
commitc94dc901aa52ae7a3c605557a6f8e8814707c806 (patch)
tree151cfe48acb24c049ae6ffb83d5195056239d06c
parent2b9e0e7cc61aa4d3811cde8db92ddb2795e4e97c (diff)
Fix Enter/Return not running non-dir items in list view mode.
Reviewed-by:broulik
-rw-r--r--containments/desktop/package/contents/ui/FolderView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml
index e589c03..9588306 100644
--- a/containments/desktop/package/contents/ui/FolderView.qml
+++ b/containments/desktop/package/contents/ui/FolderView.qml
@@ -668,7 +668,7 @@ Item {
Keys.onReturnPressed: {
if (currentIndex != -1 && dir.hasSelection()) {
- var func = root.useListViewMode ? dir.cd : dir.run;
+ var func = root.useListViewMode && currentItem.isDir ? dir.cd : dir.run;
func(positioner.map(currentIndex));
}
}