summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 01:26:57 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 01:26:57 -0700
commitf7d6bd73efd82a99b7276a19fd022542c42d0427 (patch)
treeb80518de068719da2b4623ebb0851ed4c2dccd51
parenta166cebe20171257875e988b4c48eb4189bfd778 (diff)
downloadpiny-code-f7d6bd73efd82a99b7276a19fd022542c42d0427.tar.gz
piny-code-f7d6bd73efd82a99b7276a19fd022542c42d0427.zip
Don't save tweakables that are overridden on accident.
-rw-r--r--libpiny/lib/Piny/Config.pm1
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};