Fix open-in-new-window to work with remote URLs

FIXED-IN: 4.9.0
BUGS: 274655, 292822
This commit is contained in:
David Faure 2012-07-18 20:40:56 +02:00 committed by Emmanuel Pescosta
parent 220d0d522d
commit 5fbe52c151

View file

@ -434,7 +434,7 @@ void DolphinMainWindow::updateFilterBarAction(bool show)
void DolphinMainWindow::openNewMainWindow() void DolphinMainWindow::openNewMainWindow()
{ {
KRun::run("dolphin", KUrl::List(), this); KRun::run("dolphin %u", KUrl::List(), this);
} }
void DolphinMainWindow::openNewTab() void DolphinMainWindow::openNewTab()
@ -545,7 +545,7 @@ void DolphinMainWindow::openInNewWindow()
} }
if (!newWindowUrl.isEmpty()) { 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) { switch (command) {
case DolphinContextMenu::OpenParentFolderInNewWindow: { case DolphinContextMenu::OpenParentFolderInNewWindow: {
KRun::run("dolphin", KUrl::List() << item.url().upUrl(), this); KRun::run("dolphin %u", KUrl::List() << item.url().upUrl(), this);
break; break;
} }