eric6/UI/NotificationWidget.py

changeset 8154
5f4b02eefc32
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- 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:

eric ide

mercurial