summaryrefslogtreecommitdiffstats
path: root/src/sdk/installerbase.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-07-14 12:10:33 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-07-14 12:25:06 +0200
commit7186834d5094083cff984bfc3002acaa5b8ec988 (patch)
tree64a5bf3cc56490640137a63800d3366413b9255d /src/sdk/installerbase.cpp
parent32df3fe093a62a6a435ff38270374cf3049c5fe4 (diff)
Adjust parsing the arguments, we now only need them for the parser.
Change-Id: Ibf4ee8358f7eb75854c8b6ca9be25b1288eb045d Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/sdk/installerbase.cpp')
-rw-r--r--src/sdk/installerbase.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index f31e290a0..2e4c88dbb 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -94,11 +94,6 @@ int main(int argc, char *argv[])
setrlimit(RLIMIT_NOFILE, &rl);
#endif
- // We need to start either a command line application or a GUI application. Since we
- // fail doing so at least on Linux while parsing the argument using a core application
- // object and later starting the GUI application, we now parse the arguments first.
- const QStringList args = QInstaller::parseCommandLineArgs(argc, argv);
-
qsrand(QDateTime::currentDateTime().toTime_t());
const KDSelfRestarter restarter(argc, argv);
KDRunOnceChecker runCheck(QLatin1String("lockmyApp1234865.lock"));
@@ -171,7 +166,10 @@ int main(int argc, char *argv[])
parser.addPositionalArgument(QLatin1String("Key=Value"),
QLatin1String("Key Value pair to be set."));
- parser.parse(args);
+ // We need to start either a command line application or a GUI application. Since we
+ // fail doing so at least on Linux while parsing the argument using a core application
+ // object and later starting the GUI application, we now parse the arguments first.
+ parser.parse(QInstaller::parseCommandLineArgs(argc, argv));
QStringList mutually;
if (parser.isSet(checkUpdates))
@@ -283,7 +281,7 @@ int main(int argc, char *argv[])
if (QInstaller::isVerbose()) {
qDebug() << VERSION;
- qDebug() << "Arguments:" << args;
+ qDebug() << "Arguments:" << app.arguments();
qDebug() << "Resource tree before loading the in-binary resource:";
qDebug() << "Language: " << QLocale().uiLanguages().value(0,
QLatin1String("No UI language set"));