From 45c659b440a3c8058fff1d4d7f64a3cc4d45e237 Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Wed, 22 May 2013 21:47:14 +0200 Subject: Added the "Open in new Tabs" action to the Dolphin Context menu. BUG: 312296 REVIEW: 110371 FIXED-IN: 4.11.0 --- src/dolphincontextmenu.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphincontextmenu.cpp') diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index af8b61384..cddcc8936 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -235,6 +235,20 @@ void DolphinContextMenu::openItemContextMenu() this); addAction(openParentInNewTabAction); + addSeparator(); + } + } else { + bool selectionHasOnlyDirs = true; + foreach (const KFileItem& item, m_selectedItems) { + if (!item.isDir()) { + selectionHasOnlyDirs = false; + break; + } + } + + if (selectionHasOnlyDirs) { + // insert 'Open in new tab' entry + addAction(m_mainWindow->actionCollection()->action("open_in_new_tabs")); addSeparator(); } } -- cgit v1.3