Fix the 'view menu crashes' bug that mcafee just reported.

This commit is contained in:
ramiro%netscape.com 1998-10-09 07:52:51 +00:00
parent a510b93fa0
commit 68bf9b2255

View File

@ -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)