┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/main.cpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index df70c7c13..afd01117e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,6 +65,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
TextWidgets
WindowSystem
Notifications
+ Crash
)
find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS
Activities
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 413260bd5..48a7c1de6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -136,6 +136,7 @@ target_link_libraries(
dolphinprivate PUBLIC
dolphinvcs
Qt5::Gui
+ KF5::Crash
KF5::I18n
KF5::IconThemes
KF5::KIOCore
diff --git a/src/main.cpp b/src/main.cpp
index bcc9f8a85..0c5ac87f2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -28,6 +28,7 @@
#include <KDBusService>
#include <KAboutData>
+#include <KCrash>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QApplication>
@@ -40,6 +41,8 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setWindowIcon(QIcon::fromTheme("system-file-manager"));
+ KCrash::initialize();
+
Kdelibs4ConfigMigrator migrate(QStringLiteral("dolphin"));
migrate.setConfigFiles(QStringList() << QStringLiteral("dolphinrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("dolphinpart.rc") << QStringLiteral("dolphinui.rc"));