mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Properties and Rename should be disabled when separator is selected in bookmarks manager (73898). r=kerz sr=ben a=asa
This commit is contained in:
parent
6d85b848e8
commit
b97a6cafef
@ -650,7 +650,8 @@ BookmarksTree.prototype = {
|
||||
return true;
|
||||
case "cmd_properties":
|
||||
case "cmd_rename":
|
||||
return numSelectedItems == 1;
|
||||
seln = gBookmarksShell.tree.selectedItems;
|
||||
return numSelectedItems == 1 && seln[0].getAttribute("type") != NC_NS + "BookmarkSeparator";
|
||||
case "cmd_setnewbookmarkfolder":
|
||||
seln = gBookmarksShell.tree.selectedItems;
|
||||
var firstSelected = seln.length ? seln[0] : gBookmarksShell.tree;
|
||||
|
Loading…
Reference in New Issue
Block a user