Fixed a wrong ext compare in export dlg

This commit is contained in:
HomeWorld
2010-10-18 15:56:20 +03:00
parent a1fa2e272c
commit a60f65ed2e

View File

@@ -227,8 +227,9 @@ class ExportDialog ( wx.Dialog ):
def OnFileChoose( self, event ):
self.filePath,ext = os.path.splitext(event.Path)
print ext
self.cFileSavePicker.SetPath(self.filePath)
if ext.lower() == "xml":
if ext.lower() == ".xml":
self.chCtrl.SetSelection(0)
else:
self.chCtrl.SetSelection(1)