mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Merge branch 'Applications/19.04'
This commit is contained in:
commit
b8f8c90275
|
@ -351,7 +351,12 @@ void DolphinContextMenu::openViewportContextMenu()
|
||||||
KFileItemActions fileItemActions;
|
KFileItemActions fileItemActions;
|
||||||
fileItemActions.setParentWidget(m_mainWindow);
|
fileItemActions.setParentWidget(m_mainWindow);
|
||||||
fileItemActions.setItemListProperties(baseUrlProperties);
|
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
|
// 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.
|
// "open_in_new_tab" here, as the current selection should get ignored.
|
||||||
|
|
Loading…
Reference in a new issue