summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-11-22 07:53:14 +0100
committerLaurent Montel <[email protected]>2018-11-22 07:53:14 +0100
commit44ad8209f108b1b6868a2460efdd9b24bf1625d2 (patch)
tree9b4ef68ec197b7873c42d57f8a8782b58ac7d710
parent6dcea285931ffd92e583ceec0278401346866646 (diff)
initialize QApplication first
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 67bf84a..b1a0ee9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -54,6 +54,7 @@ public:
extern "C" int Q_DECL_EXPORT kdemain( int argc, char **argv )
{
+ KMenuApplication app(argc, argv);
Kdelibs4ConfigMigrator migrate(QStringLiteral("kmenuedit"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kmenueditrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kmenueditui.rc"));
@@ -71,7 +72,6 @@ extern "C" int Q_DECL_EXPORT kdemain( int argc, char **argv )
aboutData.addAuthor(i18n("Montel Laurent"), QString(), QStringLiteral("[email protected]"));
KAboutData::setApplicationData(aboutData);
- KMenuApplication app(argc, argv);
KDBusService service(KDBusService::Unique);