diff options
author | Chad Elliott <elliott_c@ociweb.com> | 2016-02-17 13:21:17 -0600 |
---|---|---|
committer | Chad Elliott <elliott_c@ociweb.com> | 2016-02-17 13:21:17 -0600 |
commit | 5fb44a674b91c340fe347516790070bbbbf75f5a (patch) | |
tree | bb4c872bbd61fe5bf8ed2e1c205a4c0fee026d83 /modules/ProjectCreator.pm | |
parent | d1b26228a52600a9f245b2874f06ba8db61cfac4 (diff) | |
download | MPC-5fb44a674b91c340fe347516790070bbbbf75f5a.tar.gz |
Wed Feb 17 19:19:40 UTC 2016 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/ProjectCreator.pm')
-rw-r--r-- | modules/ProjectCreator.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index d8baee86..b4012203 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -167,7 +167,7 @@ my $generic_key = 'generic_files'; ## These constants are used with the "project info" and ## must match the order that is defined by the call order -## of ProjectCreator::update_project_info(). This is called +## of ProjectCreator::update_project_info(). This called ## order is determined by the TemplateParser. ## ## NOTE: If you are going to add a new constant, you must make it the @@ -5508,9 +5508,12 @@ sub remove_non_custom_settings { my $self = shift; ## Remove any files that may have automatically been added - ## to this project + ## to this project. If they were explicitly added, then we + ## will leave them in the project. foreach my $key (keys %{$self->{'custom_only_removed'}}) { - $self->{$key} = {}; + if ($self->{'defaulted'}->{$key}) { + $self->{$key} = {}; + } } ## Unset the exename, sharedname and staticname |