diff --git a/CMakeLists.txt b/CMakeLists.txt index fa667f018..ecdc3abec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,7 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS Config ConfigWidgets CoreAddons + Crash DocTools IconThemes JS diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt index ec2f1bace..e85076dda 100644 --- a/shell/CMakeLists.txt +++ b/shell/CMakeLists.txt @@ -27,7 +27,7 @@ ecm_add_app_icon(okular_SRCS ICONS ${ICONS_SRCS}) add_executable(okular ${okular_SRCS}) -target_link_libraries(okular KF5::Parts KF5::WindowSystem) +target_link_libraries(okular KF5::Parts KF5::WindowSystem KF5::Crash) if(NOT WIN32) target_link_libraries(okular KF5::Activities) diff --git a/shell/main.cpp b/shell/main.cpp index 3f8dc4367..de8a5c24e 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,8 @@ int main(int argc, char** argv) // set icon for shells which do not use desktop file metadata QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("okular"))); + KCrash::initialize(); + QCommandLineParser parser; // The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);