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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user