]> cloud.milkyroute.net Git - dolphin.git/commitdiff
behavior change -> New Window opens with same URL
authorDon Nguyen <don78colorado@gmail.com>
Mon, 27 Mar 2017 22:52:29 +0000 (00:52 +0200)
committerAlbert Astals Cid <aacid@kde.org>
Mon, 27 Mar 2017 22:52:29 +0000 (00:52 +0200)
This patch will cause a "New Window" command to open a new window with
the URL from the active view.  Opening a new instance via launcher will
still open a new window with the URL specified in Startup settings.
This is the behavior in Windows 10 file explorer.  The advantage is this
gives the user a way to open a new window with the current URL(New
Window) as well as a new window with URL specified in Startup
settings(new instance) whereas currently, there isn't an easy way to
open a new window with the current URL.  You'd have to either open a new
window and copy and paste the URL, or open a new tab(which opens with
the same URL) and detach it.  I'd much rather have the new window open
with the current URL and if what I wanted was the Startup URL I could
easily get there as it's already bookmarked.

REVIEW: 129973

src/dolphinmainwindow.cpp

index de8601d4e96ad2bbe0bbd58c659bf11421d227c6..a163ef7fd03d07c354b0c928610b0626a972f588 100644 (file)
@@ -290,7 +290,7 @@ void DolphinMainWindow::updateFilterBarAction(bool show)
 
 void DolphinMainWindow::openNewMainWindow()
 {
-    Dolphin::openNewWindow({}, this);
+    Dolphin::openNewWindow({m_activeViewContainer->url()}, this);
 }
 
 void DolphinMainWindow::openNewActivatedTab()