Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1904f7e9 authored by Albert Astals Cid's avatar Albert Astals Cid

Use KCrash

parent 804d0bd4
......@@ -53,6 +53,7 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
Config
ConfigWidgets
CoreAddons
Crash
DocTools
IconThemes
JS
......
......@@ -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)
......
......@@ -20,6 +20,7 @@
#include <kwindowsystem.h>
#include <QApplication>
#include <KAboutData>
#include <KCrash>
#include <KMessageBox>
#include <QCommandLineParser>
#include <QCommandLineOption>
......@@ -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);
......
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