From f7d6bd73efd82a99b7276a19fd022542c42d0427 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 23 May 2011 01:26:57 -0700 Subject: Don't save tweakables that are overridden on accident. --- libpiny/lib/Piny/Config.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'libpiny/lib') 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}; -- cgit v1.2.3