diff -r 0c740fcffd34 -r 5f4b02eefc32 eric6/UI/NotificationWidget.py --- a/eric6/UI/NotificationWidget.py Thu Mar 04 19:39:54 2021 +0100 +++ b/eric6/UI/NotificationWidget.py Mon Mar 08 16:55:00 2021 +0100 @@ -257,8 +257,9 @@ """ if not self.__settingPosition: clickedLabel = self.childAt(evt.pos()) - clickedNotification = clickedLabel.parent() - self.__removeNotification(clickedNotification) + if clickedLabel: + clickedNotification = clickedLabel.parent() + self.__removeNotification(clickedNotification) return if evt.button() == Qt.MouseButton.LeftButton: