diff options
| author | Jin Liu <[email protected]> | 2024-08-19 11:15:23 +0000 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2024-08-19 11:15:23 +0000 |
| commit | 2b1906eeeabaf91b856d46e72390ae811747ec39 (patch) | |
| tree | 3858c977ff9517a1cd3f81f26e09d08a76afd60d /src/views/dolphinview.cpp | |
| parent | eac3abac9c9c5d243e905fcff13de7e127cadb0e (diff) | |
Fix middle-click not following the "Open archives as folder" setting
Previous to this commit middle-clicking an archive would always open it
in a new tab. This contradicts the recent change
d27ee07de7558470ef7b497fbe3d3504ce7cad07 which made it so middle-click
would open an item in the second application that is available to open
a file.
With this commit, middle-clicking will treat the archive like a folder
only when GeneralSettings::browseThroughArchives is enabled or when
there is no second application available. Otherwise middle-click will
open the archive in the second available application.
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 85e652ecf..11c0423be 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1120,7 +1120,7 @@ void DolphinView::slotItemsActivated(const KItemSet &indexes) void DolphinView::slotItemMiddleClicked(int index) { const KFileItem &item = m_model->fileItem(index); - const QUrl &url = openItemAsFolderUrl(item); + const QUrl &url = openItemAsFolderUrl(item, GeneralSettings::browseThroughArchives()); const auto modifiers = QGuiApplication::keyboardModifiers(); if (!url.isEmpty()) { // keep in sync with KUrlNavigator::slotNavigatorButtonClicked |
