Title: [commits] (morgen) [15320] Fix for bug 10817 (invalid index in wxListBox::SetString on deleting the outgoing mail account in debug) r=Jeffrey
Revision
15320
Author
morgen
Date
2007-09-12 10:28:02 -0700 (Wed, 12 Sep 2007)

Log Message

Fix for bug 10817 (invalid index in wxListBox::SetString on deleting the outgoing mail account in debug) r=Jeffrey

Modified Paths

Diff

Modified: trunk/chandler/application/dialogs/AccountPreferences.py (15319 => 15320)

--- trunk/chandler/application/dialogs/AccountPreferences.py	2007-09-12 17:22:19 UTC (rev 15319)
+++ trunk/chandler/application/dialogs/AccountPreferences.py	2007-09-12 17:28:02 UTC (rev 15320)
@@ -1648,13 +1648,13 @@
                 self.data)
 
         if canDelete:
-            self.accountsList.Delete(index)
             self.deletions.append(self.data[index])
             del self.data[index]
             self.innerSizer.Detach(self.currentPanel)
             self.currentPanel.Hide()
             self.currentIndex = None
             self.selectAccount(-1)
+            self.accountsList.Delete(index)
             for messageWidget in self.currentMessages:
                 messageWidget.Hide()
 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to