mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Obey the page argument when using the unique option
Patch by Victor Blazquez svn path=/trunk/KDE/kdegraphics/okular/; revision=1218021
This commit is contained in:
parent
40d20ca58d
commit
054623a581
|
@ -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…
Reference in a new issue