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:
parent
01e970553f
commit
896aad3ab0
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue