mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
AuiToolBar checks that it has not been Destroyed by the most recent action before doing any post-processing for the action
This commit is contained in:
@@ -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
|
||||
@@ -4028,4 +4031,3 @@ class AuiToolBar(wx.Control):
|
||||
|
||||
manager = self.GetAuiManager()
|
||||
manager.StopPreviewTimer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user