Fixed crash when dismissing modal dialogs. r=mscott

This commit is contained in:
tbogard%aol.net 2000-02-08 18:57:02 +00:00
parent 90bab0bb4f
commit 79d89d1831

View File

@ -787,7 +787,7 @@ NS_IMETHODIMP nsXULWindow::ShowModal()
rv = appShell->GetNativeEvent(isRealEvent, data);
if(NS_SUCCEEDED(rv))
{
mWindow->ModalEventFilter(isRealEvent, data, &processEvent);
window->ModalEventFilter(isRealEvent, data, &processEvent);
if(processEvent)
appShell->DispatchNativeEvent(isRealEvent, data);
}