From 34be1f8cc0cacdb6065cf342a37222c32b5f2035 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 27 May 2014 09:53:31 +0200 Subject: [PATCH] Fix the profile_string handling in loading the profile from gcode. --- Cura/gui/mainWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.30.2