[Nvda-dev] commit r1956 - in trunk: . source/gui

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Nvda-dev] commit r1956 - in trunk: . source/gui

NVDA Subversion
Author: jteh
Date: Thu Apr 24 05:06:47 2008
New Revision: 1956

Log:
gui: Use a copy of the topLevelWindows list when iterating to destroy windows, as windows may mutate the list when they are destroyed.

Modified:
   trunk/   (props changed)
   trunk/source/gui/__init__.py

Modified: trunk/source/gui/__init__.py
==============================================================================
--- trunk/source/gui/__init__.py (original)
+++ trunk/source/gui/__init__.py Thu Apr 24 05:06:47 2008
@@ -108,7 +108,7 @@
  def Destroy(self):
  global topLevelWindows
  self.sysTrayIcon.Destroy()
- for window in topLevelWindows:
+ for window in list(topLevelWindows):
  window.Destroy()
  super(MainFrame, self).Destroy()