Blob Blame History Raw
--- branches/KDE/4.3/kdegraphics/okular/shell/shell.cpp	2009/07/06 18:58:27	992398
+++ branches/KDE/4.3/kdegraphics/okular/shell/shell.cpp	2009/10/08 22:20:11	1032945
@@ -58,7 +58,12 @@
      if any.
      */
     QString arg = m_args->arg(argIndex);
+    const QString origArg = arg;
     arg.replace(QRegExp("^file:/{1,3}"), "/");
+    if (arg != origArg)
+    {
+        arg = QString::fromUtf8(QByteArray::fromPercentEncoding(arg.toUtf8()));
+    }
     KUrl url = KCmdLineArgs::makeURL(arg.toUtf8());
     int sharpPos = -1;
     if (!url.isLocalFile() || !QFile::exists(url.toLocalFile()))