IDEA-81451 (fix file tree root element)

This commit is contained in:
Roman Shevchenko
2012-02-16 15:47:52 +01:00
parent 6ba6b802e7
commit 554ee1739a
@@ -34,7 +34,7 @@ public class RootFileElement extends FileElement {
private Object[] myChildren;
public RootFileElement(@NotNull final VirtualFile[] files, final String name, final boolean showFileSystemRoots) {
super(null, name);
super(files.length == 1 ? files[0] : null, name);
myFiles = files.length == 0 && showFileSystemRoots ? getFileSystemRoots() : files;
}