From 511f68eafd334c27cd40fe296b6a15ee3bec7c0d Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 7 Feb 2013 16:06:11 +0400 Subject: [PATCH] [vcs] IDEA-100630 UpdateInfoTree: reload the model on rebuild Otherwise existing nodes are not revalidated, and the size allocated to the renderer is not recalculated. --- .../src/com/intellij/openapi/vcs/update/UpdateInfoTree.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/update/UpdateInfoTree.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/update/UpdateInfoTree.java index 995af2527ae7..d24ddab1ccd8 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/update/UpdateInfoTree.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/update/UpdateInfoTree.java @@ -229,6 +229,9 @@ public class UpdateInfoTree extends PanelWithActionsAndCloseButton implements Di private void updateTreeModel() { myRoot.rebuild(VcsConfiguration.getInstance(myProject).UPDATE_GROUP_BY_PACKAGES, getScopeFilter(), myShowOnlyFilteredItems); + if (myTreeModel != null) { + myTreeModel.reload(); + } } public Object getData(String dataId) {