DolphinContextMenu::~DolphinContextMenu()
{
+ delete m_baseFileItem;
+ m_baseFileItem = nullptr;
delete m_selectedItemsProperties;
m_selectedItemsProperties = nullptr;
}
// 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.
- addAction(m_mainWindow->actionCollection()->action(QStringLiteral("new_window")));
+ addAction(m_mainWindow->actionCollection()->action(QStringLiteral("file_new")));
addAction(m_mainWindow->actionCollection()->action(QStringLiteral("new_tab")));
// Insert 'Add to Places' entry if exactly one item is selected
addAction(pasteAction);
addSeparator();
+ // Insert 'Sort By' and 'View Mode'
+ addAction(m_mainWindow->actionCollection()->action(QStringLiteral("sort")));
+ addAction(m_mainWindow->actionCollection()->action(QStringLiteral("view_mode")));
+
+ addSeparator();
+
// Insert service actions
fileItemActions.addServiceActionsTo(this);
fileItemActions.addPluginActionsTo(this);