chiark / gitweb /
Fix the profile_string handling in loading the profile from gcode.
authordaid <daid303@gmail.com>
Tue, 27 May 2014 07:53:31 +0000 (09:53 +0200)
committerdaid <daid303@gmail.com>
Tue, 27 May 2014 07:53:31 +0000 (09:53 +0200)
Cura/gui/mainWindow.py

index be6a782420832a4bfb64a82f654331a83812adbf..db46a4d385e9d4c632b34b92c08d8af7520236cf 100644 (file)
@@ -465,8 +465,8 @@ class mainWindow(wx.Frame):
                        for line in f:
                                if line.startswith(';CURA_PROFILE_STRING:'):
                                        profile.setProfileFromString(line[line.find(':')+1:].strip())
-                                       if ';{profile_string}' not in profile.getProfileSetting('end.gcode'):
-                                               profile.putProfileSetting('end.gcode', profile.getProfileSetting('end.gcode') + '\n;{profile_string}')
+                                       if ';{profile_string}' not in profile.getAlterationFile('end.gcode'):
+                                               profile.setAlterationFile('end.gcode', profile.getAlterationFile('end.gcode') + '\n;{profile_string}')
                                        hasProfile = True
                        if hasProfile:
                                self.updateProfileToAllControls()