Set check value in ConfirmCheck even if cancel is pressed. b=218021 r=adamlock sr=bzbarsky
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user