narrow down flag shouldn't be applied when entering selected element on filter toggle (IDEA-63157)

This commit is contained in:
Dmitry Jemerov
2011-04-11 19:45:29 +02:00
parent a314da8078
commit 7fa09fa454
@@ -274,7 +274,14 @@ public class FileStructureDialog extends DialogWrapper {
myTreeStructure.rebuildTree();
if (builder != null) {
if (currentParent != null) {
builder.enterElement(currentParent, PsiUtilBase.getVirtualFile(currentParent));
boolean oldNarrowDown = myShouldNarrowDown;
myShouldNarrowDown = false;
try {
builder.enterElement(currentParent, PsiUtilBase.getVirtualFile(currentParent));
}
finally {
myShouldNarrowDown = oldNarrowDown;
}
}
builder.updateList(true);
}