Open KDE's crash handler on crash (bump KF5 requirement to 5.15)

parent f18c24cb
......@@ -74,9 +74,8 @@ check_include_files(pthread.h HAVE_PTHREAD_H)
find_package(Qt5 CONFIG REQUIRED Core DBus Test Widgets Script Svg)
find_package(KF5 REQUIRED Archive Bookmarks CoreAddons Config ConfigWidgets
DBusAddons KIO WidgetsAddons Plotting NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes DocTools)
find_package(KF5 5.15 REQUIRED COMPONENTS Archive Bookmarks CoreAddons Config ConfigWidgets
DBusAddons KIO WidgetsAddons Plotting NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes DocTools Crash)
# Search MLT package.
find_package(MLT ${MLT_MIN_VERSION} REQUIRED)
......
......@@ -261,6 +261,7 @@ target_link_libraries(kdenlive
KF5::Notifications
KF5::TextWidgets
KF5::IconThemes
KF5::Crash
${Qt5_LIBRARIES}
Qt5::Svg
${OPENGL_LIBRARIES}
......
......@@ -22,6 +22,7 @@
#include "mainwindow.h"
#include <KAboutData>
#include <KCrash>
#include <QDebug>
#include <QUrl> //new
......@@ -37,7 +38,7 @@ int main(int argc, char *argv[])
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
QCoreApplication::setAttribute(Qt::AA_X11InitThreads);
#endif
KLocalizedString::setApplicationDomain("kdenlive");
// Init application
......@@ -93,6 +94,7 @@ int main(int argc, char *argv[])
// Register DBus service
KDBusService programDBusService;
KCrash::initialize();
// see if we are starting with session management
if (qApp->isSessionRestored()){
......
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