From a60f65ed2e13fa3b389ca0f6031ef80506757940 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 18 Oct 2010 15:56:20 +0300 Subject: [PATCH] Fixed a wrong ext compare in export dlg --- gui/importExport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/importExport.py b/gui/importExport.py index 428b36314..60ce327b5 100644 --- a/gui/importExport.py +++ b/gui/importExport.py @@ -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)