Merge pull request #695 from houqp/new_ui_houqp

return to caller when there is no window to show in UIManager
This commit is contained in:
{Qingping,Dave} Hou
2013-01-08 23:05:07 -08:00

View File

@@ -154,9 +154,10 @@ function UIManager:run()
--DEBUG("dirty stack", self._dirty)
--DEBUG("---------------------------------------------------")
-- stop when we have no window to show (bug)
-- stop when we have no window to show
if #self._window_stack == 0 then
error("no dialog left to show, would loop endlessly")
DEBUG("no dialog left to show, would loop endlessly")
return nil
end
-- repaint dirty widgets