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 46dae512 authored by Laurent Montel's avatar Laurent Montel 😁

We must show actions even we don't select text

parent 75238255
......@@ -2738,13 +2738,11 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
menu.addAction(mMsgActions->debugAkonadiSearchAction());
}
}
if (!selectedText.isEmpty()) {
if (mMsgView) {
const QList<QAction *> interceptorUrlActions = mMsgView->interceptorUrlActions(result);
if (!interceptorUrlActions.isEmpty()) {
menu.addSeparator();
menu.addActions(interceptorUrlActions);
}
if (mMsgView) {
const QList<QAction *> interceptorUrlActions = mMsgView->interceptorUrlActions(result);
if (!interceptorUrlActions.isEmpty()) {
menu.addSeparator();
menu.addActions(interceptorUrlActions);
}
}
......
......@@ -618,12 +618,10 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url
menu->addAction(mMsgActions->debugAkonadiSearchAction());
}
}
if (!selectedText.isEmpty()) {
const QList<QAction *> interceptorUrlActions = mReaderWin->interceptorUrlActions(result);
if (!interceptorUrlActions.isEmpty()) {
menu->addSeparator();
menu->addActions(interceptorUrlActions);
}
const QList<QAction *> interceptorUrlActions = mReaderWin->interceptorUrlActions(result);
if (!interceptorUrlActions.isEmpty()) {
menu->addSeparator();
menu->addActions(interceptorUrlActions);
}
if (menu) {
......
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