Commit 47edf68d authored by Bill Lynch's avatar Bill Lynch Committed by bill

Fix for when multiple sidebars get swallowed.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@357 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4d18f5aa
...@@ -185,6 +185,7 @@ public class AdminConsole { ...@@ -185,6 +185,7 @@ public class AdminConsole {
private boolean active; private boolean active;
private Map<String,Item> items; private Map<String,Item> items;
private Item parent; private Item parent;
private static int idSeq = 0;
/** /**
* Creates a new item given its main attributes. * Creates a new item given its main attributes.
...@@ -212,6 +213,9 @@ public class AdminConsole { ...@@ -212,6 +213,9 @@ public class AdminConsole {
private void init() { private void init() {
items = Collections.synchronizedMap(new LinkedHashMap<String,Item>()); items = Collections.synchronizedMap(new LinkedHashMap<String,Item>());
if (id == null) {
id = String.valueOf(idSeq++);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment