Fix to have result count be updated whenever children are added or removed

This commit is contained in:
Eugene Livis 2015-07-17 15:09:11 -04:00
parent 9ba304f22b
commit e0431dba77

View File

@ -631,17 +631,16 @@ public class DataResultPanel extends javax.swing.JPanel implements DataResult, C
@Override
public void childrenAdded(final NodeMemberEvent nme) {
Node[] delta = nme.getDelta();
updateMatches();
if (load && containsReal(delta)) {
load = false;
if (SwingUtilities.isEventDispatchThread()) {
setupTabs(nme.getNode());
updateMatches();
} else {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
setupTabs(nme.getNode());
updateMatches();
}
});
}