Autoapplying on creation / deletion of sections is annoying, disable it.
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index d19e0eb..d24fa6a 100644 (file)
@@ -769,6 +769,7 @@ end
 
 -- Removes the section
 function AbstractSection.remove(self, section)
 
 -- Removes the section
 function AbstractSection.remove(self, section)
+       self.map.autoapply = false
        return self.map:del(section)
 end
 
        return self.map:del(section)
 end
 
@@ -795,6 +796,8 @@ function AbstractSection.create(self, section)
                end
        end
 
                end
        end
 
+       self.map.autoapply = false
+
        return stat
 end
 
        return stat
 end