зеркало из https://github.com/mozilla/pjs.git
followup to menubarless dialog fix. sometimes during startup it is normal to not have a native application menu yet. b=355138
This commit is contained in:
Родитель
222f7423f1
Коммит
931e6533c5
|
@ -1060,9 +1060,9 @@ NS_IMETHODIMP nsCocoaWindow::GetAttention(PRInt32 aCycleCount)
|
|||
geckoMenuBar->Paint();
|
||||
}
|
||||
else {
|
||||
// we are definitely going to need an application menu here, and we can't
|
||||
// create one ourselves
|
||||
NS_ASSERTION(sApplicationMenu, "No native application menu and we need one!");
|
||||
// sometimes we don't have a native application menu early in launching
|
||||
if (!sApplicationMenu)
|
||||
return;
|
||||
|
||||
// create a new menu bar with one item
|
||||
NSMenu* newMenuBar = [[NSMenu alloc] init];
|
||||
|
|
Загрузка…
Ссылка в новой задаче