Don't show multiple windows when replying to a notification

This commit is contained in:
Nicolas Fella 2019-04-14 19:08:25 +02:00
parent 3cb491041a
commit 08fd50931b

View file

@ -118,7 +118,7 @@ KNotification* Notification::createKNotification(bool update, const NetworkPacke
if (!m_requestReplyId.isEmpty()) { if (!m_requestReplyId.isEmpty()) {
m_notification->setActions(QStringList(i18n("Reply"))); m_notification->setActions(QStringList(i18n("Reply")));
connect(m_notification, &KNotification::action1Activated, this, &Notification::reply); connect(m_notification, &KNotification::action1Activated, this, &Notification::reply, Qt::UniqueConnection);
} }
connect(m_notification, &KNotification::closed, this, &Notification::closed); connect(m_notification, &KNotification::closed, this, &Notification::closed);