summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-17 13:06:18 +0000
committerSteven Barth <steven@midlink.org>2009-01-17 13:06:18 +0000
commit495714426232f7560d3b1e2f9dc99eb06ecd8781 (patch)
treee66ab6043946799555ee2305814e7777a93e4f52 /libs/cbi
parent77e992e78cc2dc03dfa891d67d4fe55db184250b (diff)
Autoapplying on creation / deletion of sections is annoying, disable it.
Diffstat (limited to 'libs/cbi')
-rw-r--r--libs/cbi/luasrc/cbi.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index d19e0eb73..d24fa6ad0 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -769,6 +769,7 @@ end
-- Removes the section
function AbstractSection.remove(self, section)
+ self.map.autoapply = false
return self.map:del(section)
end
@@ -795,6 +796,8 @@ function AbstractSection.create(self, section)
end
end
+ self.map.autoapply = false
+
return stat
end