[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kviewshell-0.7/kviewshell/shell
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-10-18 19:42:20
Message-ID: 1161200540.245872.2491.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 596869 by whuss:
Make the --goto and --unique command line options work together as expected.
M +13 -1 main.cpp
--- branches/work/kviewshell-0.7/kviewshell/shell/main.cpp #596868:596869
@@ -136,8 +136,20 @@
reply >> result;
if (result == true)
{
- if (app.dcopClient()->send(*it, "kviewpartInterface", \
"jumpToReference(QString)", args->url(0).ref()) == true) + // If the \
goto-Option is set use its argument as the jump reference, + // \
otherwise the reference part of the url is used. + QString ref;
+ if (args->isSet("goto"))
{
+ ref = args->getOption("goto");
+ }
+ else
+ {
+ ref = args->url(0).ref();
+ }
+
+ if (app.dcopClient()->send(*it, "kviewpartInterface", \
"jumpToReference(QString)", ref) == true) + {
app.dcopClient()->detach();
return 0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic