]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Bring back 'New Window' action in viewport context menu
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 20 May 2018 21:24:43 +0000 (23:24 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 20 May 2018 21:24:43 +0000 (23:24 +0200)
This fixes a regression introduced by ec12391a1b.

We don't use anymore the custom `new_window` action, but we use the
standard `file_new` action instead.

src/dolphincontextmenu.cpp

index f4d184a277c930d5463994f9ac56ec1f638b8865..a6e465f2adfd68d780e0bb037287814a139c1940 100644 (file)
@@ -347,7 +347,7 @@ void DolphinContextMenu::openViewportContextMenu()
 
     // 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