зеркало из https://github.com/mozilla/pjs.git
Bug 84529: Crash with return/enter key after switching Configuraition
Using return/enter key after switching Configuration takes you to the next screen (r=bobj)
This commit is contained in:
Родитель
baceb25527
Коммит
87e2d6a0fb
|
@ -1002,18 +1002,18 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
|
|||
*p2++ = '\0';
|
||||
CString value = replaceVars(parms, NULL);
|
||||
BOOL newval = (!value.IsEmpty());
|
||||
parms = p2;
|
||||
p2 = strchr(parms, ',');
|
||||
while (parms)
|
||||
char *parms1 = p2;
|
||||
p2 = strchr(parms1, ',');
|
||||
while (parms1)
|
||||
{
|
||||
if (p2)
|
||||
*p2++ = '\0';
|
||||
WIDGET *w = findWidget(parms);
|
||||
if (w)
|
||||
w->control->EnableWindow(newval);
|
||||
parms = p2;
|
||||
if (parms)
|
||||
p2 = strchr(parms, ',');
|
||||
parms1 = p2;
|
||||
if (parms1)
|
||||
p2 = strchr(parms1, ',');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче