Commit 1a326e18 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Set application data before initializing KleopatraApplication

During the initialization of KleopatraApplication the menu of the
system tray icon is set up. For the menu entries we need the display
name of the application.

GnuPG-bug-id: 5833
parent 20dce6e8
......@@ -111,6 +111,9 @@ int main(int argc, char **argv)
KLocalizedString::setApplicationDomain("kleopatra");
AboutData aboutData;
KAboutData::setApplicationData(aboutData);
if (Kleo::userIsElevated()) {
/* This is a safeguard against bugreports that something fails because
* of permission problems on windows. Some users still have the Windows
......@@ -148,10 +151,6 @@ int main(int argc, char **argv)
app.init();
qCDebug(KLEOPATRA_LOG) << "Startup timing:" << timer.elapsed() << "ms elapsed: Application initialized";
AboutData aboutData;
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
kleopatra_options(&parser);
......
Markdown is supported
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