From b7727bc69561a07ff3d3282858310ecfb945868c Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Tue, 23 Feb 2010 22:55:57 -0800 Subject: [PATCH] ui.gadgets.worlds: deactivate world before calling the ui-error-hook --- basis/ui/gadgets/worlds/worlds.factor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/basis/ui/gadgets/worlds/worlds.factor b/basis/ui/gadgets/worlds/worlds.factor index eea2933b04..05466f4673 100644 --- a/basis/ui/gadgets/worlds/worlds.factor +++ b/basis/ui/gadgets/worlds/worlds.factor @@ -217,8 +217,7 @@ ui-error-hook [ [ rethrow ] ] initialize dup [ draw-world* ] with-gl-context flush-layout-cache-hook get call( -- ) ] [ - over ui-error - f >>active? drop + swap f >>active? ui-error ] recover ] with-variable ] [ drop ] if ;