IDEA-76614 Unable to right click in Favorites tab

This commit is contained in:
Konstantin Bulenkov
2011-11-08 18:43:19 +01:00
parent f6ed5b74c8
commit f2e0f6e7a9
@@ -62,12 +62,16 @@ public class SendToFavoritesGroup extends ActionGroup{
if (!(parent instanceof FavoritesTreeNodeDescriptor)) {
return EMPTY_ARRAY;
}
String name = ((FavoritesListNode)parent.getElement()).getName();
if (listName == null) {
listName = name;
}
if (!StringUtil.equals(listName, name)) {
return EMPTY_ARRAY;
final Object parentElement = parent.getElement();
if (parentElement instanceof FavoritesListNode) {
String name = ((FavoritesListNode)parentElement).getName();
if (listName == null) {
listName = name;
}
if (!StringUtil.equals(listName, name)) {
return EMPTY_ARRAY;
}
}
}