зеркало из https://github.com/mozilla/pjs.git
bug 164796 disable menu should not be opened. patch=robin.lu@sun.com, r=jay.yan@sun.com, sr=hyatt
This commit is contained in:
Родитель
e4004a26ba
Коммит
56029994cf
|
@ -579,7 +579,9 @@ NS_IMETHODIMP nsMenuBarFrame::SetCurrentMenuItem(nsIMenuFrame* aMenuItem)
|
||||||
aMenuItem->SelectMenu(PR_TRUE);
|
aMenuItem->SelectMenu(PR_TRUE);
|
||||||
aMenuItem->MarkAsGenerated(); // Have the menu building. Get it ready to be shown.
|
aMenuItem->MarkAsGenerated(); // Have the menu building. Get it ready to be shown.
|
||||||
|
|
||||||
if (wasOpen)
|
PRBool isDisabled = PR_FALSE;
|
||||||
|
aMenuItem->MenuIsDisabled(isDisabled);
|
||||||
|
if (wasOpen&&!isDisabled)
|
||||||
aMenuItem->OpenMenu(PR_TRUE);
|
aMenuItem->OpenMenu(PR_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче