diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-12-13 13:36:12 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-12-13 13:36:12 +0100 |
| commit | 909e8254f7fe01121e32817337091c491abe2cf9 (patch) | |
| tree | 17c55d856cb9053a6372db8b41d521802030f79a /src/modinfodialogfiletree.cpp | |
| parent | 8cf24923bb510360d18f6dd0bd1a2a57ea1a2bca (diff) | |
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.
Diffstat (limited to 'src/modinfodialogfiletree.cpp')
| -rw-r--r-- | src/modinfodialogfiletree.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |
