mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Show "Open With" menu items even for empty dirs
We found some legitimate use cases for this after all! :)
This reverts 14f0cd52f6
BUG: 427573
FIXED-IN: 5.12
This commit is contained in:
parent
4937992e93
commit
b343fdffc5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue