X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/462982faa361c79daab43ce526ae64646b1ea63c..360a8dd883f7e281c0a3f2ae729450790399bf3d:/src/dolphincontextmenu.cpp diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index d4807d3a7..d318acab2 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -36,7 +36,6 @@ #include #include #include -#include #include #include @@ -335,11 +334,9 @@ void DolphinContextMenu::openViewportContextMenu() newFileMenu->setPopupFiles(QList() << 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);