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:
parent
69c973a894
commit
b4abc5b28a
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user