From: daid Date: Tue, 27 May 2014 07:55:44 +0000 (+0200) Subject: Minor cleanup. X-Git-Tag: 14.06~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f542c937e427d3f2510603b9a0fe280ff2326396;p=cura.git Minor cleanup. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index db46a4d3..90b2832a 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -479,7 +479,7 @@ class mainWindow(wx.Frame): dlg.SetWildcard("ini files (*.ini)|*.ini") if dlg.ShowModal() == wx.ID_OK: profileFile = dlg.GetPath() - if platform.system() == 'Linux': #hack for linux, as for some reason the .ini is not appended. + if not profileFile.lower().endswith('.ini'): #hack for linux, as for some reason the .ini is not appended. profileFile += '.ini' profile.saveProfile(profileFile) dlg.Destroy() @@ -510,6 +510,7 @@ class mainWindow(wx.Frame): dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX") if dlg.ShowModal() == wx.ID_OK: filename = dlg.GetPath() + dlg.Destroy() if not(os.path.exists(filename)): return #For some reason my Ubuntu 10.10 crashes here.