]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix open-in-new-window to work with remote URLs
authorDavid Faure <faure@kde.org>
Wed, 18 Jul 2012 18:40:56 +0000 (20:40 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Mon, 13 Aug 2012 20:25:28 +0000 (22:25 +0200)
FIXED-IN: 4.9.0
BUGS: 274655, 292822

src/dolphinmainwindow.cpp

index fe3024d23a90c51c676d030d025ecd24cfd0816c..f3d23d6862236c6726587f96a98508ba981ee751 100644 (file)
@@ -434,7 +434,7 @@ void DolphinMainWindow::updateFilterBarAction(bool show)
 
 void DolphinMainWindow::openNewMainWindow()
 {
-    KRun::run("dolphin", KUrl::List(), this);
+    KRun::run("dolphin %u", KUrl::List(), this);
 }
 
 void DolphinMainWindow::openNewTab()
@@ -545,7 +545,7 @@ void DolphinMainWindow::openInNewWindow()
     }
 
     if (!newWindowUrl.isEmpty()) {
-        KRun::run("dolphin", KUrl::List() << newWindowUrl, this);
+        KRun::run("dolphin %u", KUrl::List() << newWindowUrl, this);
     }
 }
 
@@ -1299,7 +1299,7 @@ void DolphinMainWindow::openContextMenu(const QPoint& pos,
 
     switch (command) {
     case DolphinContextMenu::OpenParentFolderInNewWindow: {
-        KRun::run("dolphin", KUrl::List() << item.url().upUrl(), this);
+        KRun::run("dolphin %u", KUrl::List() << item.url().upUrl(), this);
         break;
     }