From d7a77c89346d774095a66d95f6966ef135f14b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 5 Dec 2015 19:25:04 +0000 Subject: [PATCH] Initialize KCrash. --- CMakeLists.txt | 2 +- src/main.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 016d3d9..be2294f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS ) # Load the frameworks we need -find_package(KF5 REQUIRED +find_package(KF5 5.15 REQUIRED Config Crash DocTools diff --git a/src/main.cpp b/src/main.cpp index 150bd4a..017a1d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -60,6 +61,7 @@ int Q_DECL_IMPORT main(int argc, char* argv[]) aboutData->addCredit(i18n("Hugo Pereira Da Costa"), i18nc("@info:credit", "Partition Widget Design"), QStringLiteral("hugo@oxygen-icons.org")); KAboutData::setApplicationData(*aboutData); app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); + KCrash::initialize(); QCommandLineParser parser; parser.setApplicationDescription(aboutData->shortDescription());