┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.cpp
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2020-10-12 18:16:53 -0600
committerNate Graham <[email protected]>2020-10-12 18:16:53 -0600
commitb343fdffc52ff42d83afa02f6eaf1f5a359a49a9 (patch)
tree240289b9a1e74f7ec053c8bd826d326eca57e60b /src/dolphincontextmenu.cpp
parent4937992e93088bb572cda971bb899aed0e812aa3 (diff)
Show "Open With" menu items even for empty dirs
We found some legitimate use cases for this after all! :) This reverts 14f0cd52f61de7539e2d9c751966594708ed0281 BUG: 427573 FIXED-IN: 5.12
Diffstat (limited to 'src/dolphincontextmenu.cpp')
-rw-r--r--src/dolphincontextmenu.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index d4807d3a7..f091039a7 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -335,11 +335,9 @@ void DolphinContextMenu::openViewportContextMenu()
newFileMenu->setPopupFiles(QList<QUrl>() << m_baseUrl);
addMenu(newFileMenu->menu());
- // Don't show "Open With" menu items if the current dir is empty, because there's
- // generally no app that can do anything interesting with an empty directory
- if (view->itemsCount() != 0) {
- addOpenWithActions(fileItemActions);
- }
+ // Show "open with" menu items even if the dir is empty, because there are legitimate
+ // use cases for this, such as opening an empty dir in Kate or VSCode or something
+ addOpenWithActions(fileItemActions);
QAction* pasteAction = createPasteAction();
addAction(pasteAction);