Add extension based on export type, if no extension specified

This commit is contained in:
DarkPhoenix
2013-08-31 00:43:35 +04:00
parent f2e2572266
commit 0c4850ed8f

View File

@@ -500,6 +500,8 @@ class MainFrame(wx.Frame):
else:
saveFmt = "txt"
filePath = saveDialog.GetPath()
if '.' not in os.path.basename(filePath):
filePath += ".{0}".format(saveFmt)
self.waitDialog = animUtils.WaitDialog(self)
sCharacter.backupSkills(filePath, saveFmt, self.getActiveFit(), self.closeWaitDialog)
self.waitDialog.ShowModal()