summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-11 11:42:42 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-11 11:43:32 (GMT)
commit73a5b9cffc16560605b40cd40189a9b62a87c65c (patch)
treeae297ca8df2c932b050f4d1b96af72bf02b0e002
parent766c18137eca6195ae2f4742f467c7562b09e255 (diff)
QApplication must be first line
-rw-r--r--src/selftest/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selftest/main.cpp b/src/selftest/main.cpp
index 6bb07ff..58b22e4 100644
--- a/src/selftest/main.cpp
+++ b/src/selftest/main.cpp
@@ -26,6 +26,7 @@
int main(int argc, char *argv[])
{
+ QApplication app(argc, argv);
QCommandLineParser parser;
KAboutData about(QStringLiteral("akonadiselftest"),
i18n("Akonadi Self Test"),
@@ -35,7 +36,6 @@ int main(int argc, char *argv[])
i18n("(c) 2008 Volker Krause <vkrause@kde.org>"));
about.setupCommandLine(&parser);
- QApplication app(argc, argv);
QCoreApplication::setApplicationName(QStringLiteral("akonadiselftest"));
QCoreApplication::setApplicationVersion(QStringLiteral("1.0"));
parser.process(app);