diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 01:26:57 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 01:26:57 -0700 |
commit | f7d6bd73efd82a99b7276a19fd022542c42d0427 (patch) | |
tree | b80518de068719da2b4623ebb0851ed4c2dccd51 /libpiny/lib/Piny | |
parent | a166cebe20171257875e988b4c48eb4189bfd778 (diff) | |
download | piny-code-f7d6bd73efd82a99b7276a19fd022542c42d0427.tar.gz piny-code-f7d6bd73efd82a99b7276a19fd022542c42d0427.zip |
Don't save tweakables that are overridden on accident.
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index 53b19e3..b949198 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -163,6 +163,7 @@ sub save { foreach my $key ( keys %{$s->_conf} ) { if ( exists $override->{$key} ) { + $s->_conf->{$key} = $override->{$key}; delete $s->_conf->{$key} if $key =~ /^piny\./; } elsif ( exists $userconf->{$key} ) { delete $s->_conf->{$key} if $userconf->{$key} eq $s->_conf->{$key}; |