┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-12-17 21:07:18 +0000
committerPeter Penz <[email protected]>2009-12-17 21:07:18 +0000
commite15a9f3a8da1907b26195a1833588fc86a9d50ca (patch)
treee140f643669f97e4e51ddbbe4c547e2b2a429e8e /src/main.cpp
parentd613313b064ce75b2537f3d0cf08b563ed915574 (diff)
* respect the --select startup option
* minor cleanups related to selecting items in general svn path=/trunk/KDE/kdebase/apps/; revision=1063329
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 678604897..215ec92ec 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -68,7 +68,14 @@ int main(int argc, char **argv)
KCmdLineArgs::init(argc, argv, &about);
KCmdLineOptions options;
- options.add("+[Url]", ki18nc("@info:shell", "Document to open"));
+
+ // TODO KDE SC 4.5: The string freeze is valid and no new localized strings are allowed.
+ // To get in the --select option that was available in Konqueror 3, an already existing
+ // string ("Document to open") is used as workaround (the --select option will most probably
+ // anyhow used by applications and not by users).
+ const KLocalizedString& documentToOpen = ki18nc("@info:shell", "Document to open");
+ options.add("select", documentToOpen);
+ options.add("+[Url]", documentToOpen);
KCmdLineArgs::addCmdLineOptions(options);
if (!DolphinApplication::start()) {