Bug #251 » 0001-Fix-warning-dialog.c-695-Widget-storePasswordCheck-n.patch
src/gui/dlg_input.c | ||
---|---|---|
if (!(n & 2)) {
|
||
GWEN_Dialog_RemoveWidget(dlg, "storePasswordCheck");
|
||
xdlg->storePasswordCheckEnabled = 1;
|
||
}
|
||
return dlg;
|
||
... | ... | |
GWEN_Dialog_SetIntProperty(dlg, "input1", GWEN_DialogProperty_Focus, 0, 1, 0);
|
||
xdlg->storePasswordCheckEnabled = 0;
|
||
xdlg->wasInit=1;
|
||
}
|
||
... | ... | |
s=GWEN_Dialog_GetCharProperty(dlg, "input1", GWEN_DialogProperty_Value, 0, NULL);
|
||
if (s)
|
||
xdlg->response=strdup(s);
|
||
xdlg->flagAllowStore=GWEN_Dialog_GetIntProperty(dlg, "storePasswordCheck", GWEN_DialogProperty_Value, 0, 0);
|
||
if (xdlg->storePasswordCheckEnabled)
|
||
xdlg->flagAllowStore=GWEN_Dialog_GetIntProperty(dlg, "storePasswordCheck", GWEN_DialogProperty_Value, 0, 0);
|
||
else
|
||
xdlg->flagAllowStore=0;
|
||
}
|
||
#if 0
|
src/gui/dlg_input_p.h | ||
---|---|---|
int maxLen;
|
||
char *response;
|
||
int storePasswordCheckEnabled;
|
||
int flagAllowStore;
|
||
};
|
||
typedef struct GWEN_DLGINPUT GWEN_DLGINPUT;
|