r2854 - trunk/data/qcsrc/menu-div0test/item
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Oct 26 09:29:46 EDT 2007
Author: div0
Date: 2007-10-26 09:29:46 -0400 (Fri, 26 Oct 2007)
New Revision: 2854
Modified:
trunk/data/qcsrc/menu-div0test/item/container.c
Log:
added a consistency check to focus changing
Modified: trunk/data/qcsrc/menu-div0test/item/container.c
===================================================================
--- trunk/data/qcsrc/menu-div0test/item/container.c 2007-10-26 12:34:30 UTC (rev 2853)
+++ trunk/data/qcsrc/menu-div0test/item/container.c 2007-10-26 13:29:46 UTC (rev 2854)
@@ -204,9 +204,12 @@
void setFocusContainer(entity me, entity other)
{
+ if(other)
+ if(!me.focused)
+ error("Trying to set focus in a non-focused control!");
if(me.focusedChild == other)
return;
- print(etos(me), ": focus changes from ", etos(me.focusedChild), " to ", etos(other), "\n");
+ //print(etos(me), ": focus changes from ", etos(me.focusedChild), " to ", etos(other), "\n");
if(me.focusedChild)
{
me.focusedChild.focused = 0;
More information about the nexuiz-commits
mailing list