From: Steven Barth Date: Sat, 17 Jan 2009 13:06:18 +0000 (+0000) Subject: Autoapplying on creation / deletion of sections is annoying, disable it. X-Git-Tag: 0.9.0~780 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=495714426232f7560d3b1e2f9dc99eb06ecd8781;p=project%2Fluci.git Autoapplying on creation / deletion of sections is annoying, disable it. --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index d19e0eb73e..d24fa6ad03 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