chiark / gitweb /
Fix for #614
authornallath <nallath@gmail.com>
Tue, 4 Mar 2014 10:29:48 +0000 (11:29 +0100)
committernallath <nallath@gmail.com>
Tue, 4 Mar 2014 10:29:48 +0000 (11:29 +0100)
Cura/gui/mainWindow.py

index d193bd4692a846ffb0c103c0d8f3421b0629bbba..dceb8e03fdb0f72b17509e7e05d31a951217a46e 100644 (file)
@@ -22,6 +22,7 @@ from Cura.gui.tools import pidDebugger
 from Cura.gui.tools import minecraftImport
 from Cura.util import profile
 from Cura.util import version
+import platform
 from Cura.util import meshLoader
 
 class mainWindow(wx.Frame):
@@ -476,6 +477,8 @@ 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.
+                               profileFile += '.ini'
                        profile.saveProfile(profileFile)
                dlg.Destroy()