Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
70193a5f by wurstsalat at 2024-06-27T19:15:19+02:00
fix: MessageRowActions: Make on_hover method more robust

Fixes #11884

- - - - -


1 changed file:

- gajim/gtk/conversation/rows/widgets.py


Changes:

=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -203,7 +203,6 @@ def _on_hover(self, _eventbox: MessageRowActions, event: 
Gdk.EventCrossing) -> b
             event.type == Gdk.EventType.LEAVE_NOTIFY
             and event.detail != Gdk.NotifyType.INFERIOR
         ):
-
             self._has_cursor = False
             self._timeout_id = None
 
@@ -212,8 +211,8 @@ def _on_hover(self, _eventbox: MessageRowActions, event: 
Gdk.EventCrossing) -> b
                 # but we don't want to hide MessageRowActions
                 return True
 
-            assert self._message_row is not None
-            
self._message_row.get_style_context().remove_class('conversation-row-hover')
+            if self._message_row is not None:
+                
self._message_row.get_style_context().remove_class('conversation-row-hover')
 
             self.hide()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/70193a5fa4bfb1a7046d1781ad75d1f0010b54e2

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/70193a5fa4bfb1a7046d1781ad75d1f0010b54e2
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to