Use KCrash

parent ab9fd247
......@@ -64,6 +64,7 @@ find_package(KF5 ${REQUIRED_KF5_VERSION} REQUIRED
Codecs
Completion
ConfigWidgets
Crash
DBusAddons
DocTools
IconThemes
......
......@@ -25,6 +25,7 @@ target_link_libraries( okteta
KF5::I18n
KF5::XmlGui
KF5::DBusAddons
KF5::Crash
)
install( TARGETS okteta ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
......
......@@ -48,6 +48,8 @@
// KF5
#include <KDBusService>
#include <KLocalizedString>
#include <KCrash>
#include <kcoreaddons_version.h>
// Qt
#include <QCommandLineParser>
#include <QList>
......@@ -81,6 +83,9 @@ OktetaProgram::OktetaProgram( int &argc, char* argv[] )
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KLocalizedString::setApplicationDomain( "okteta" );
#if KCOREADDONS_VERSION >= 0x051500
KCrash::initialize();
#endif
}
......
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