mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix the 'view menu crashes' bug that mcafee just reported.
This commit is contained in:
parent
a510b93fa0
commit
68bf9b2255
@ -3673,12 +3673,19 @@ XFE_Frame::commandToString(CommandType cmd,
|
||||
{
|
||||
char *res = NULL;
|
||||
|
||||
if (m_toolbar->isShown())
|
||||
res = "hideNavToolbarCmdString";
|
||||
if (!m_toolbar)
|
||||
{
|
||||
return "There Ain't No Toolbar, Dude";
|
||||
}
|
||||
else
|
||||
res = "showNavToolbarCmdString";
|
||||
|
||||
return stringFromResource(res);
|
||||
{
|
||||
if (m_toolbar->isShown())
|
||||
res = "hideNavToolbarCmdString";
|
||||
else
|
||||
res = "showNavToolbarCmdString";
|
||||
|
||||
return stringFromResource(res);
|
||||
}
|
||||
}
|
||||
#ifdef MOZ_TASKBAR
|
||||
else if (cmd == xfeCmdToggleTaskbarShowing)
|
||||
|
Loading…
Reference in New Issue
Block a user