Fix non-destroyed dialog in 'OnOpenProject' if 'Cancel' selected
authorlaurent
Tue, 01 Sep 2009 10:40:11 +0200
changeset 383 9ae15ab058f3
parent 382 37f870528def
child 384 50f2069a06b3
Fix non-destroyed dialog in 'OnOpenProject' if 'Cancel' selected
Beremiz.py
--- a/Beremiz.py	Thu Aug 27 12:47:40 2009 +0200
+++ b/Beremiz.py	Tue Sep 01 10:40:11 2009 +0200
@@ -1288,7 +1288,7 @@
                 message = wx.MessageDialog(self, _("\"%s\" folder is not a valid Beremiz project\n")%projectpath, _("Error"), wx.OK|wx.ICON_ERROR)
                 message.ShowModal()
                 message.Destroy()
-            dialog.Destroy()
+        dialog.Destroy()
         event.Skip()
     
     def OnCloseProjectMenu(self, event):