mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix memory leak. QMenu::addAction(QMenu*) does not take ownership.
svn path=/trunk/KDE/kdebase/apps/; revision=1004276
This commit is contained in:
parent
b1d5b7d017
commit
a48c813fd9
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ void DolphinContextMenu::openViewportContextMenu()
|
||||||
popup->addAction(pasteAction);
|
popup->addAction(pasteAction);
|
||||||
|
|
||||||
// setup 'View Mode' menu
|
// setup 'View Mode' menu
|
||||||
KMenu* viewModeMenu = new KMenu(i18nc("@title:menu", "View Mode"));
|
KMenu* viewModeMenu = new KMenu(i18nc("@title:menu", "View Mode"), popup);
|
||||||
|
|
||||||
QAction* iconsMode = m_mainWindow->actionCollection()->action("icons");
|
QAction* iconsMode = m_mainWindow->actionCollection()->action("icons");
|
||||||
viewModeMenu->addAction(iconsMode);
|
viewModeMenu->addAction(iconsMode);
|
||||||
|
|
Loading…
Reference in a new issue