From 846a3e3c832e85f58cb030a1d665a3fa20663e2b Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 29 Dec 2009 08:38:49 +0000 Subject: [PATCH] Do the same treatment to paths passed from the command line when we are starting a new shell and when we are passing the argument through dbus BUGS: 205076 svn path=/trunk/KDE/kdegraphics/okular/; revision=1067205 --- shell/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/main.cpp b/shell/main.cpp index cc1ca36a3..e75788b6d 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -18,6 +18,7 @@ #include #include #include "aboutdata.h" +#include "shellutils.h" static bool attachUniqueInstance(KCmdLineArgs* args) { @@ -28,7 +29,7 @@ static bool attachUniqueInstance(KCmdLineArgs* args) if (!iface.isValid()) return false; - iface.call("openDocument", args->url(0).pathOrUrl()); + iface.call("openDocument", ShellUtils::urlFromArg(args->arg(0), ShellUtils::qfileExistFunc()).url()); return true; }