Commit 2c91e943 authored by Ragnar Thomsen's avatar Ragnar Thomsen Committed by Michael Reeves

Use KCrash framework to handle segfaults

parent 214de6e7
......@@ -43,6 +43,7 @@ find_package(
COMPONENTS
I18n
CoreAddons
Crash
IconThemes
)
find_package(KF5DocTools ${KF5_MIN_VERSION} REQUIRED )
......@@ -50,7 +51,7 @@ find_package(KF5DocTools ${KF5_MIN_VERSION} REQUIRED )
# I don't need warnings about wired things in comments.
set(CLANG_WARNING_FLAGS -Wno-comment)
set(KDiff3_LIBRARIES ${Qt5PrintSupport_LIBRARIES} KF5::I18n KF5::CoreAddons KF5::IconThemes)
set(KDiff3_LIBRARIES ${Qt5PrintSupport_LIBRARIES} KF5::I18n KF5::CoreAddons KF5::Crash KF5::IconThemes )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLANG_WARNING_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CLANG_WARNING_FLAGS}")
......
......@@ -19,6 +19,7 @@
#include <QApplication>
#include <KAboutData>
#include <KLocalizedString>
#include <KCrash/KCrash>
#include "kdiff3_shell.h"
#include "version.h"
#include <QTextCodec>
......@@ -122,6 +123,8 @@ public:
int main(int argc, char *argv[])
{
QApplication app(argc, argv); // KAboutData and QCommandLineParser depend on this being setup.
KCrash::initialize();
#ifdef _WIN32
/* KDiff3 can be used as replacement for the text-diff and merge tool provided by
Clearcase. This is experimental and so far has only been tested under Windows.
......
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