Always make sure imported profiles are available for the currently active machine

The profile name of an imported legacy profile gets set in ProfilesModel.importProfile()

Contributes to CURA-874
This commit is contained in:
fieldOfView 2016-02-16 21:50:57 +01:00
parent ccd937a56f
commit 27062d8e99

View file

@ -65,7 +65,6 @@ class LegacyProfileReader(ProfileReader):
def read(self, file_name):
Logger.log("i", "Importing legacy profile from file " + file_name + ".")
profile = Profile(machine_manager = Application.getInstance().getMachineManager(), read_only = False) #Create an empty profile.
profile.setName("Imported Legacy Profile")
parser = configparser.ConfigParser(interpolation = None)
try: