fix uiprogressbar assert

This commit is contained in:
Eduardo Bart
2011-11-14 12:37:55 -02:00
parent 5784644701
commit 654fb1f3ea
3 changed files with 15 additions and 9 deletions

View File

@@ -50,10 +50,8 @@ local function onWidgetHoverChange(widget, hovered)
end
local function onWidgetStyleApply(widget, style)
if not style or not style.tooltip then return end
print(style.tooltip)
if not style then return end
widget.tooltip = style.tooltip
table.dump(style)
end
connect(UIWidget, { onStyleApply = onWidgetStyleApply,