From f542c937e427d3f2510603b9a0fe280ff2326396 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 27 May 2014 09:55:44 +0200 Subject: [PATCH] Minor cleanup. --- Cura/gui/mainWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.30.2