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:
joshmoz%gmail.com 2006-12-19 22:54:14 +00:00
Родитель 222f7423f1
Коммит 931e6533c5
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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];