diff options
| author | Andreas Cord-Landwehr <[email protected]> | 2015-11-14 22:37:40 +0100 |
|---|---|---|
| committer | Andreas Cord-Landwehr <[email protected]> | 2015-11-14 22:37:40 +0100 |
| commit | 3c09528f3cc2aed4b4f005113486f3189ea65af6 (patch) | |
| tree | 200cee798df63543d137b24e1880a398773672ef /src | |
| parent | 727d2513c0a8e7b3e6370f5e08b0d7579ae89564 (diff) | |
Enable KCrash crash handler.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/main.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
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")); |
