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(); geckoMenuBar->Paint();
} }
else { else {
// we are definitely going to need an application menu here, and we can't // sometimes we don't have a native application menu early in launching
// create one ourselves if (!sApplicationMenu)
NS_ASSERTION(sApplicationMenu, "No native application menu and we need one!"); return;
// create a new menu bar with one item // create a new menu bar with one item
NSMenu* newMenuBar = [[NSMenu alloc] init]; NSMenu* newMenuBar = [[NSMenu alloc] init];