Fixed a wrong ext compare in export dlg
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user