Bug 514520 - Double separator in context menu after properties dialog deletion. r=dao

This commit is contained in:
Johnathan Nightingale 2009-09-14 11:20:03 -04:00
parent 43b3e98f73
commit 1172189753
2 changed files with 2 additions and 3 deletions

View File

@ -285,7 +285,6 @@
oncommand="gContextMenu.viewFrameInfo();"/>
</menupopup>
</menu>
<menuseparator id="context-sep-properties"/>
<menuitem id="context-viewpartialsource-selection"
label="&viewPartialSourceForSelectionCmd.label;"
accesskey="&viewPartialSourceCmd.accesskey;"
@ -296,6 +295,7 @@
accesskey="&viewPartialSourceCmd.accesskey;"
oncommand="gContextMenu.viewPartialSource('mathml');"
observes="isImage"/>
<menuseparator id="context-sep-viewsource"/>
<menuitem id="context-viewsource"
label="&viewPageSourceCmd.label;"
accesskey="&viewPageSourceCmd.accesskey;"

View File

@ -222,8 +222,7 @@ nsContextMenu.prototype = {
this.showItem("context-viewsource", shouldShow);
this.showItem("context-viewinfo", shouldShow);
this.showItem("context-sep-properties",
(shouldShow || this.isContentSelected));
this.showItem("context-sep-viewsource", shouldShow);
// Set as Desktop background depends on whether an image was clicked on,
// and only works if we have a shell service.