Commit 1125887b authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Move parameter processing earlier in kalendar startup



This makes kalendar not initialize akonadi when showing about or version
information and fix kalendar --version when a kalendar instance is
already started.

BUG: 453807

Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent c704277b
Pipeline #176637 passed with stage
in 3 minutes and 17 seconds
......@@ -94,6 +94,11 @@ int main(int argc, char *argv[])
KAboutData::setApplicationData(aboutData);
QGuiApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("org.kde.kalendar")));
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
auto config = KalendarConfig::self();
CalendarManager manager;
ContactManager contactManager;
......@@ -116,10 +121,6 @@ int main(int argc, char *argv[])
}
});
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
QQmlApplicationEngine engine;
QQmlDebuggingEnabler enabler;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment