Call check_widget() in :setup()
I just spent too much time tracking down a bug that happened while drawing a widget. This is the reason why we should apply sanity checks while widgets are constructed, so that we get a useful backtrace. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
cf3c81fa9e
commit
b1e7d3c22c
|
@ -390,6 +390,7 @@ local function drill(ids, content)
|
||||||
e, id2 = drill(ids, v)
|
e, id2 = drill(ids, v)
|
||||||
widgets[k] = e
|
widgets[k] = e
|
||||||
end
|
end
|
||||||
|
base.check_widget(widgets[k])
|
||||||
|
|
||||||
-- Place the widget in the access table
|
-- Place the widget in the access table
|
||||||
if id2 then
|
if id2 then
|
||||||
|
|
Loading…
Reference in New Issue