check window stack before sending events

This should fix FC on Android with "Start with last opened file" checked
pull/633/head
chrox 10 years ago
parent 6b6dd818de
commit 31639cce39

@ -116,6 +116,7 @@ end
-- transmit an event to registered widgets
function UIManager:sendEvent(event)
if #self._window_stack == 0 then return end
-- top level widget has first access to the event
if self._window_stack[#self._window_stack].widget:handleEvent(event) then
return

Loading…
Cancel
Save