Fix for re-entrancy problem with menus

git-svn-id: svn://10.0.0.236/trunk@92107 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
johng%corel.com
2001-04-12 19:10:23 +00:00
parent 9140c35746
commit 0a0a794fdf

View File

@@ -607,8 +607,12 @@ nsresult nsWidget::CreateWidget(nsIWidget *aParent,
CreateNative(parentWidget);
Resize(aRect.width,aRect.height,PR_FALSE);
qApp->processEvents(1);
if (mIsToplevel || IsDialog()) {
/* We have to Spin the Qt Event loop to make non-modal dialogs */
/* and top level windows come up with the correct size, but it */
/* creates problems for menus, etc. */
qApp->processEvents(1);
}
DispatchStandardEvent(NS_CREATE);
return NS_OK;
}