diff --git a/src/librssguard/gui/notifications/basetoastnotification.cpp b/src/librssguard/gui/notifications/basetoastnotification.cpp index 7e2ea52e7..b54b6271b 100644 --- a/src/librssguard/gui/notifications/basetoastnotification.cpp +++ b/src/librssguard/gui/notifications/basetoastnotification.cpp @@ -79,10 +79,18 @@ bool BaseToastNotification::eventFilter(QObject* watched, QEvent* event) { setupTimedClosing(); } + if (event->type() == QEvent::Type::MouseButtonPress) { + if (dynamic_cast(event)->button() == Qt::MouseButton::RightButton) { + close(); + } + } + return QDialog::eventFilter(watched, event); } void BaseToastNotification::closeEvent(QCloseEvent* event) { + Q_UNUSED(event) + stopTimedClosing(); emit closeRequested(this); }