diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs index 0e7b6e5b61..e3604edc2d 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Policies/PolicyService.cs @@ -1240,6 +1240,11 @@ namespace MonoDevelop.Projects.Policies if (pset.Id == "Default") { defaultPolicies = pset; } else { + // if the policy file does not have a name, use the file name as one + if (!string.IsNullOrEmpty (pset.Name)) { + pset.Name = file.FileNameWithoutExtension; + } + AddUserPolicySet (pset); } xr.MoveToContent (); |