summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-07-15 13:16:06 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-07-15 13:16:06 (GMT)
commit05cf553058c8bdb1a5a8e87b765be43bae00aa05 (patch)
treeaf99fd89ec37de109f2e1debf764de861be7f796
parentbe86ce09418e86c91561c9ede97b6837391b98d6 (diff)
Add KCrash support.
-rw-r--r--CMakeLists.txt2
-rw-r--r--main.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a92b203..44d4174 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,7 @@ find_package(KF5 5.23 REQUIRED
DocTools
Codecs
CoreAddons
+ Crash
DBusAddons
I18n
IconThemes
@@ -239,6 +240,7 @@ target_link_libraries(kgpg
KF5::Codecs
KF5::Contacts
KF5::CoreAddons
+ KF5::Crash
KF5::DBusAddons
KF5::I18n
KF5::IconThemes
diff --git a/main.cpp b/main.cpp
index 0177a02..1bde6b1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -20,6 +20,7 @@
#include <QCommandLineParser>
#include <KAboutData>
+#include <KCrash>
#include <KDBusService>
#include <Kdelibs4ConfigMigrator>
#include <KLocalizedString>
@@ -28,6 +29,8 @@ int main(int argc, char *argv[])
{
KGpgApp *app = new KGpgApp(argc, argv);
+ KCrash::initialize();
+
Kdelibs4ConfigMigrator migrate(QLatin1Literal("kgpg"));
migrate.setConfigFiles({ QLatin1Literal("kgpgrc") });
migrate.setUiFiles({ QStringLiteral("keysmanager.rc"), QStringLiteral("kgpgeditor.rc") });