[Okular-devel] [Bug 205076] okular: inconsistent handling of reference given as part of command line arg

Albert Astals Cid tsdgeos at terra.es
Mon Dec 28 21:46:38 CET 2009


https://bugs.kde.org/show_bug.cgi?id=205076





--- Comment #3 from Albert Astals Cid <tsdgeos terra es>  2009-12-28 21:46:35 ---
Does this one work?

Index: shell/main.cpp
===================================================================
--- shell/main.cpp      (revision 1067040)
+++ shell/main.cpp      (working copy)
@@ -18,6 +18,7 @@
 #include <klocale.h>
 #include <QtDBus/qdbusinterface.h>
 #include "aboutdata.h"
+#include "shellutils.h"

 static bool attachUniqueInstance(KCmdLineArgs* args)
 {
@@ -28,7 +29,7 @@
     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;
 }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list