From bbbaafb02317d6c4bde77d43a6aa608eaec86145 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 1 Mar 2005 19:09:32 +0300 Subject: [PATCH] correct filling AddToFavoritesGroup --- source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java b/source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java index 4cccb1b88f40..3e4993cfa1fa 100644 --- a/source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java +++ b/source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java @@ -160,6 +160,7 @@ public class FavoritesViewImpl extends ContentManagerImpl implements ProjectComp public void readExternal(Element element) throws InvalidDataException { final DefaultActionGroup favoritesActionsGroup = ((DefaultActionGroup)ActionManager.getInstance().getAction(IdeActions.ADD_TO_FAVORITES)); + favoritesActionsGroup.removeAll(); favoritesActionsGroup.add(new AddToNewFavoritesListAction()); favoritesActionsGroup.addSeparator(); for (Iterator iterator = element.getChildren("favorites_list").iterator(); iterator.hasNext();) {