Commit 875d63d9 authored by Harald Sitter's avatar Harald Sitter 🐈

when clicking a link in the kmessagewidget open the url

Reviewers: bgupta

Reviewed By: bgupta

Differential Revision: https://phabricator.kde.org/D1598
parent 9736490a
......@@ -20,6 +20,7 @@
#include "KSMainWindow.h"
#include "Config.h"
#include <QDesktopServices>
#include <QJsonArray>
#include <QPrintDialog>
#include <QShortcut>
......@@ -152,6 +153,9 @@ void KSMainWindow::init()
KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true);
mDialogButtonBox->button(QDialogButtonBox::Help)->setMenu(helpMenu->menu());
// message widget
connect(mMessageWidget, &KMessageWidget::linkActivated, &QDesktopServices::openUrl);
// layouts
mDivider->setFrameShape(QFrame::HLine);
......
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