Remove Windows line endings. No bug. a=josh

This commit is contained in:
Josh Aas 2010-11-06 16:27:39 -04:00
parent 3426024d9c
commit 1947ab90af

View File

@ -3706,16 +3706,16 @@ CheckForDisabledWindows()
if (widget && !widget->GetParent() &&
NS_SUCCEEDED(widget->IsVisible(aFlag)) && aFlag == PR_TRUE &&
NS_SUCCEEDED(widget->IsEnabled(&aFlag)) && aFlag == PR_FALSE) {
nsIWidget * child = widget->GetFirstChild();
PRBool enable = PR_TRUE;
while (child) {
nsWindowType aType;
if (NS_SUCCEEDED(child->GetWindowType(aType)) &&
aType == eWindowType_dialog) {
enable = PR_FALSE;
break;
}
child = child->GetNextSibling();
nsIWidget * child = widget->GetFirstChild();
PRBool enable = PR_TRUE;
while (child) {
nsWindowType aType;
if (NS_SUCCEEDED(child->GetWindowType(aType)) &&
aType == eWindowType_dialog) {
enable = PR_FALSE;
break;
}
child = child->GetNextSibling();
}
if (enable) {
widget->Enable(PR_TRUE);