Support for viewing groups in the group list.

This commit is contained in:
Brian Pellin committed 2010-06-03 00:39:53 -05:00
1 parent f7066bdd94
commit 82c2c473be
15 files changed
+120 -68

No files matched your search

@@ -61,8 +61,6 @@ public class PwDatabaseV3 extends PwDatabase {
// Debugging entries
public PwDbHeaderV3 dbHeader;
// root group
public PwGroupV3 rootGroup;
public int getAlgorithm() {
return algorithm;
@@ -159,15 +157,17 @@ public class PwDatabaseV3 extends PwDatabase {
{
// I'm in root
if (currentGroup == null) {
rootGroup = new PwGroupV3();
PwGroupV3 root = new PwGroupV3();
rootGroup = root;
Vector<PwGroup> rootChildGroups = getGrpRoots();
rootGroup.setGroups(rootChildGroups);
rootGroup.childEntries = new Vector<PwEntry>();
rootGroup.level = -1;
root.setGroups(rootChildGroups);
root.childEntries = new Vector<PwEntry>();
root.level = -1;
for (int i=0; i<rootChildGroups.size(); i++) {
PwGroupV3 grp = (PwGroupV3) rootChildGroups.elementAt(i);
grp.parent = rootGroup;
grp.parent = root;
constructTree(grp);
}
return;