Fix for 173444, custom toolbars show up (incorrectly) in popup windows.

This commit is contained in:
hyatt%mozilla.org 2003-08-10 22:46:41 +00:00
parent 2edd248d3b
commit 89819f854f

View File

@ -529,7 +529,7 @@ function addNewToolbar()
// if a conflict is found
var nameToId = "__customToolbar_" + name.value.replace(" ", "");
var existingToolbar = gToolboxDocument.getElementById(nameToId);
if (existingToolbar) {
if (existingToolbar || !name.value) {
message = stringBundle.getFormattedString("enterToolbarDup", [name.value]);
} else {
break;