mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Enable KCrash crash handler.
This commit is contained in:
parent
727d2513c0
commit
3c09528f3c
|
@ -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
|
||||
|
|
|
@ -136,6 +136,7 @@ target_link_libraries(
|
|||
dolphinprivate PUBLIC
|
||||
dolphinvcs
|
||||
Qt5::Gui
|
||||
KF5::Crash
|
||||
KF5::I18n
|
||||
KF5::IconThemes
|
||||
KF5::KIOCore
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user