[network/ruqola] src/widgets/notificationhistory: Shortcut is just cosmetic, it can't be used.

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit df36a8ba7c1b3b6aa05a909792be8d3bb7ca9312 by Laurent Montel.
Committed on 14/08/2026 at 16:23.
Pushed by mlaurent into branch 'master'.

Shortcut is just cosmetic, it can't be used.

M  +1    -2    src/widgets/notificationhistory/notificationhistorylistview.cpp

https://invent.kde.org/network/ruqola/-/commit/df36a8ba7c1b3b6aa05a909792be8d3bb7ca9312

diff --git a/src/widgets/notificationhistory/notificationhistorylistview.cpp b/src/widgets/notificationhistory/notificationhistorylistview.cpp
index 225e15a176..f53b7c669f 100644
--- a/src/widgets/notificationhistory/notificationhistorylistview.cpp
+++ b/src/widgets/notificationhistory/notificationhistorylistview.cpp
@@ -96,12 +96,11 @@ void NotificationHistoryListView::slotCustomContextMenuRequested(const QPoint &p
             } else {
                 copyAction->setText(i18nc("@action", "Copy Message"));
             }
-            copyAction->setShortcut(QKeySequence::Copy);
             connect(copyAction, &QAction::triggered, this, [this, index]() {
                 copyMessageToClipboard(index);
             });
             menu.addAction(copyAction);
-            if (mListNotificationsDelegate->hasSelection()) {
+            if (hasSelection()) {
                 addTextPlugins(&menu, mListNotificationsDelegate->selectedText());
             }
 #if HAVE_TEXT_TO_SPEECH
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.