summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2016-08-28 19:05:21 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2016-08-28 19:05:21 (GMT)
commit30fe2a0b9d93617c80f6e3d5a61d845a5fb526ab (patch)
tree1bd8160d742074340b732abc3572bbcadb4968b3
parent79ca76a94696eda408927b122b0b531676d4ba93 (diff)
Add KCrash code so krkonqi crash dialog works again
BUG: 367006
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/main.cpp3
3 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 380e032..0808fa3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
Bookmarks Completion Config ConfigWidgets
- CoreAddons GuiAddons DBusAddons
+ CoreAddons Crash GuiAddons DBusAddons
I18n IconThemes Init KIO Notifications NotifyConfig
Parts Pty Service TextWidgets WidgetsAddons
WindowSystem XmlGui DBusAddons
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6bcd68f..25f6e57 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -175,6 +175,7 @@ target_link_libraries(kdeinit_konsole konsoleprivate KF5::XmlGui KF5::WindowSyst
KF5::I18n
KF5::KIOWidgets
KF5::NotifyConfig
+ KF5::Crash
)
install(TARGETS kdeinit_konsole konsole
diff --git a/src/main.cpp b/src/main.cpp
index 2b70aff..29f6f2b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,6 +31,7 @@
// KDE
#include <KAboutData>
#include <KLocalizedString>
+#include <KCrash>
#include <Kdelibs4ConfigMigrator>
#include <Kdelibs4Migration>
#include <kdbusservice.h>
@@ -106,6 +107,8 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char* argv[])
KAboutData::setApplicationData(about);
+ KCrash::initialize();
+
QCommandLineParser parser;
parser.setApplicationDescription(about.shortDescription());
parser.addHelpOption();