Migrate printer profile before saving as well

We want to make sure that externally added profiles are up to current
format.
This commit is contained in:
Gina Häußge 2017-03-20 12:04:25 +01:00
parent 01e970553f
commit 896aad3ab0

View file

@ -369,6 +369,7 @@ class PrinterProfileManager(object):
return profile
def _save_to_path(self, path, profile, allow_overwrite=False):
self._migrate_profile(profile)
validated_profile = self._ensure_valid_profile(profile)
if not validated_profile:
raise InvalidProfileError()