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.
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to