Allow KF5 versions < 5.15

parent fdd8d048
......@@ -74,7 +74,7 @@ check_include_files(pthread.h HAVE_PTHREAD_H)
find_package(Qt5 CONFIG REQUIRED Core DBus Test Widgets Script Svg Quick)
find_package(KF5 5.15 REQUIRED COMPONENTS Archive Bookmarks CoreAddons Config ConfigWidgets
find_package(KF5 REQUIRED COMPONENTS Archive Bookmarks CoreAddons Config ConfigWidgets
DBusAddons KIO WidgetsAddons Plotting NotifyConfig NewStuff XmlGui Notifications GuiAddons TextWidgets IconThemes DocTools Crash OPTIONAL_COMPONENTS FileMetaData)
if (KF5FileMetaData_FOUND)
......
......@@ -21,6 +21,8 @@
#include <config-kdenlive.h>
#include "mainwindow.h"
#include "kxmlgui_version.h"
#include <KAboutData>
#include <KCrash>
#include <QDebug>
......@@ -94,7 +96,11 @@ int main(int argc, char *argv[])
// Register DBus service
KDBusService programDBusService;
#if KXMLGUI_VERSION_MINOR > 14 || KXMLGUI_VERSION_MAJOR > 5
KCrash::initialize();
#else
KCrash::setCrashHandler(KCrash::defaultCrashHandler);
#endif
// 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