Commit 054623a5 authored by Albert Astals Cid's avatar Albert Astals Cid

Obey the page argument when using the unique option

Patch by Victor Blazquez

svn path=/trunk/KDE/kdegraphics/okular/; revision=1218021
parent 40d20ca5
......@@ -29,7 +29,10 @@ static bool attachUniqueInstance(KCmdLineArgs* args)
if (!iface.isValid())
return false;
iface.call("openDocument", ShellUtils::urlFromArg(args->arg(0), ShellUtils::qfileExistFunc()).url());
if (args->isSet("page"))
iface.call("openDocument", ShellUtils::urlFromArg(args->arg(0), ShellUtils::qfileExistFunc(), args->getOption("page")).url());
else
iface.call("openDocument", ShellUtils::urlFromArg(args->arg(0), ShellUtils::qfileExistFunc()).url());
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment