From: Peter Penz Date: Thu, 7 Oct 2010 18:25:47 +0000 (+0000) Subject: Use the actions "new_tab" and "new_window" for the viewport-contextmenu instead of... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/6c8c052b3ffa628fd99f4e4d726017e2fc8e0e1d?ds=inline Use the actions "new_tab" and "new_window" for the viewport-contextmenu instead of "open_in_new_tab" and "open_in_new_window", as the current selection should get ignored. svn path=/trunk/KDE/kdebase/apps/; revision=1183548 --- diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 8913468e6..ae5bf8698 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -321,9 +321,10 @@ void DolphinContextMenu::openViewportContextMenu() m_popup->addMenu(newFileMenu->menu()); m_popup->addSeparator(); - // insert 'Open in new window' and 'Open in new tab' entries - m_popup->addAction(m_mainWindow->actionCollection()->action("open_in_new_window")); - m_popup->addAction(m_mainWindow->actionCollection()->action("open_in_new_tab")); + // 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. + m_popup->addAction(m_mainWindow->actionCollection()->action("new_window")); + m_popup->addAction(m_mainWindow->actionCollection()->action("new_tab")); m_popup->addSeparator(); QAction* pasteAction = createPasteAction();