From 2749298e21dd51e8444c6dc789521e9a0f6c0e49 Mon Sep 17 00:00:00 2001 From: Lucas Thode Date: Tue, 26 Oct 2010 10:38:48 -0500 Subject: [PATCH] Added a wildcard for EFT files to the import box. Also fixed a dialog box leak in the backup fits function. --- gui/mainFrame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 0c79640a2..293d3a91e 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -154,7 +154,7 @@ class MainFrame(wx.Frame): dlg=wx.FileDialog( self, "Pick one or more fitting files to import", - wildcard = "EvE XML fitting files (*.xml)|*.xml|All Files (*.*)|*.*", + wildcard = "EFT text fitting files (*.cfg)|*.cfg|EvE XML fitting files (*.xml)|*.xml|All Files (*)|*", style = wx.FD_OPEN | wx.FD_FILE_MUST_EXIST | wx.FD_MULTIPLE) if (dlg.ShowModal() == wx.ID_OK): try: @@ -254,12 +254,13 @@ class MainFrame(wx.Frame): sFit = service.Fit.getInstance() saveDialog = wx.FileDialog( self, - "Choose where to save the backup: ", + "Choose where to save the backup", wildcard = "EvE XML fitting file (*.xml)|*.xml", style = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT) if (saveDialog.ShowModal() == wx.ID_OK): filePath = saveDialog.GetPath() sFit.backupFits(filePath) + saveDialog.Destroy() def toggleShipBrowser(self, event): self.GetToolBar().toggleShipBrowser(event)