r511 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Feb 27 05:50:13 EST 2008
Author: icculus
Date: 2008-02-27 05:50:11 -0500 (Wed, 27 Feb 2008)
New Revision: 511
Modified:
trunk/lua_glue.c
Log:
Fixed options going missing from the UI when setting a Setup.Option's
"required" field to true ...
Modified: trunk/lua_glue.c
===================================================================
--- trunk/lua_glue.c 2008-02-27 04:04:47 UTC (rev 510)
+++ trunk/lua_glue.c 2008-02-27 10:50:11 UTC (rev 511)
@@ -1298,7 +1298,14 @@
if (newopt != NULL)
{
- newopt->next_sibling = opts;
+ GuiOptions *prev = NULL; // find the end of the list...
+ GuiOptions *i = newopt;
+ do
+ {
+ prev = i;
+ i = i->next_sibling;
+ } while (i != NULL);
+ prev->next_sibling = opts;
opts = newopt; // prepend to list (we'll reverse it later...)
} // if
More information about the mojosetup-commits
mailing list