From 705299879561061ff5a15f05bad495e9ce4c059a Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sat, 4 Jan 2025 23:11:49 -0800 Subject: [PATCH] fix Enter key on file in Files on macOS --- src/docks/filesdock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docks/filesdock.cpp b/src/docks/filesdock.cpp index a1527dbc8d..dfa835a6cb 100644 --- a/src/docks/filesdock.cpp +++ b/src/docks/filesdock.cpp @@ -1160,7 +1160,8 @@ void FilesDock::keyPressEvent(QKeyEvent *event) ui->treeView->setCurrentIndex(dirsIndex); return; } - openClip(filePath); + if (!MAIN.open(filePath)) + openClip(filePath); } } event->accept();