Set check value in ConfirmCheck even if cancel is pressed. b=218021 r=adamlock sr=bzbarsky

This commit is contained in:
locka@iol.ie
2003-09-17 17:51:33 +00:00
parent c317ec7dd8
commit 5251249566

View File

@@ -255,10 +255,8 @@ nsPromptService::ConfirmCheck(nsIDOMWindow *parent,
block->GetInt(eButtonPressed, &tempInt);
*_retval = tempInt ? PR_FALSE : PR_TRUE;
if (*_retval) {
block->GetInt(eCheckboxState, & tempInt);
*checkValue = PRBool( tempInt );
}
block->GetInt(eCheckboxState, & tempInt);
*checkValue = PRBool( tempInt );
return rv;
}