Fix regression in auibar introduced in commit e32ba711 which mistakenly reverted the fix introduced in commit e059ec1a

This commit is contained in:
Jorge Moraleda
2021-03-07 15:01:19 -08:00
parent 64e5d863f7
commit 3d05abea47

View File

@@ -3257,6 +3257,9 @@ class AuiToolBar(wx.Control):
def DoIdleUpdate(self):
""" Updates the toolbar during idle times. """
if not self:
return # The action Destroyed the toolbar!
handler = self.GetEventHandler()
if not handler:
return