Use KCrash

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