Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.

Commit 35a4003

Browse files
committed
centralwidget.cpp: update to KF6Notifications
1 parent 5a7e4b9 commit 35a4003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/centralwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void CentralWidget::setupWebView() {
5050
notification->setText(notificationInfo->message());
5151
notification->setPixmap(
5252
QPixmap::fromImage(notificationInfo->icon()));
53-
notification->setDefaultAction("View");
54-
connect(notification, &KNotification::defaultActivated,
53+
notification->addDefaultAction("View");
54+
connect(notification, &KNotification::defaultAction,
5555
[&, notificationInfo = std::move(notificationInfo)]() {
5656
notificationInfo->click();
5757
show();

0 commit comments

Comments
 (0)