From: daid Date: Tue, 27 May 2014 07:53:31 +0000 (+0200) Subject: Fix the profile_string handling in loading the profile from gcode. X-Git-Tag: 14.06~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=34be1f8cc0cacdb6065cf342a37222c32b5f2035;p=cura.git Fix the profile_string handling in loading the profile from gcode. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index be6a7824..db46a4d3 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -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()