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

Commit 4b1f37f

Browse files
committed
centralwidget.cpp: update to KF6Notifications
1 parent f50c547 commit 4b1f37f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/centralwidget.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ 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+
KNotificationAction* defaultActivated =
54+
notification->addDefaultAction("View");
55+
connect(notification, &defaultActivated,
5556
[&, notificationInfo = std::move(notificationInfo)]() {
5657
notificationInfo->click();
5758
show();

0 commit comments

Comments
 (0)