Obey the page argument when using the unique option

Patch by Victor Blazquez

svn path=/trunk/KDE/kdegraphics/okular/; revision=1218021
remotes/origin/KDE/4.7
Albert Astals Cid 15 years ago
parent 40d20ca58d
commit 054623a581
  1. 5
      shell/main.cpp

@ -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;
}

Loading…
Cancel
Save