From: Don Nguyen Date: Mon, 27 Mar 2017 22:52:29 +0000 (+0200) Subject: behavior change -> New Window opens with same URL X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4de29ad90dc626febc1cda52c714d2e72d336238?ds=inline behavior change -> New Window opens with same URL 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 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index de8601d4e..a163ef7fd 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -290,7 +290,7 @@ void DolphinMainWindow::updateFilterBarAction(bool show) void DolphinMainWindow::openNewMainWindow() { - Dolphin::openNewWindow({}, this); + Dolphin::openNewWindow({m_activeViewContainer->url()}, this); } void DolphinMainWindow::openNewActivatedTab()