fix for #37078 - fix cut/copy for history window

a=ben, r=timeless


git-svn-id: svn://10.0.0.236/trunk@85078 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com 2001-01-18 07:57:32 +00:00
parent 69c973a894
commit b4abc5b28a

View File

@ -146,7 +146,7 @@ function nsTreeController_copy(tree)
function nsTreeController_cut(tree)
{
if (this.copy()) {
this.doDelete();
this.doDelete(tree);
return true; // copy succeeded, don't care if delete failed
} else
return false; // copy failed, so did cut
@ -411,8 +411,8 @@ nsTreeController.prototype =
// if we get here, then we have a command that requires selection
var tree = this.getTree();
var haveSelection = (tree.selectedItems.length > 0)
return haveCommand && haveSelection;
var haveSelection = (tree.selectedItems.length > 0);
return (haveCommand && haveSelection);
},
doCommand: function(command)
{