From 909e8254f7fe01121e32817337091c491abe2cf9 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 13 Dec 2019 13:36:12 +0100 Subject: Avoid opening folders in explorer when double-clicking on them in the filetree. As a side effect Enter and Return no longer do anything on folders either. --- src/modinfodialogfiletree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modinfodialogfiletree.cpp') diff --git a/src/modinfodialogfiletree.cpp b/src/modinfodialogfiletree.cpp index 2c33a7f1..cc0e6493 100644 --- a/src/modinfodialogfiletree.cpp +++ b/src/modinfodialogfiletree.cpp @@ -148,6 +148,11 @@ void FileTreeTab::onActivated() return; } + // Don't open explorer on directories as we just want them to be expanded instead. + if (m_fs->isDir(selection)) { + return; + } + const auto path = m_fs->filePath(selection); const auto tryPreview = core().settings().interface().doubleClicksOpenPreviews(); -- cgit v1.3.1