┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2019-04-09 20:22:23 -0600
committerNate Graham <[email protected]>2019-04-09 20:22:23 -0600
commitb8f8c9027549e3d317dbe1659cb925bb1943c168 (patch)
tree7f34a7be17e3ba373a31338be2ae3cf8910fcd10
parent9ce757b3d37fd99381d86ecf380a2d0f1b4f7905 (diff)
parent14f0cd52f61de7539e2d9c751966594708ed0281 (diff)
Merge branch 'Applications/19.04'
-rw-r--r--src/dolphincontextmenu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 439de930a..d32d35dd3 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -351,7 +351,12 @@ void DolphinContextMenu::openViewportContextMenu()
KFileItemActions fileItemActions;
fileItemActions.setParentWidget(m_mainWindow);
fileItemActions.setItemListProperties(baseUrlProperties);
- addOpenWithActions(fileItemActions);
+
+ // 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);
+ }
// Insert 'New Window' and 'New Tab' entries. Don't use "open_in_new_window" and
// "open_in_new_tab" here, as the current selection should get ignored.