Attemp to fixed browser refresh issue.

This commit is contained in:
Heng Sin Low 2012-11-06 17:44:41 +08:00
parent 7276991db9
commit 5a41941d55
1 changed files with 7 additions and 3 deletions

View File

@ -249,10 +249,14 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
Object[] objects = new Object[0];
objects = collection.toArray(objects);
for(Object obj : objects) {
try {
if (obj instanceof Component) {
((Component)obj).detach();
rootComponents.add((Component) obj);
}
} catch (Exception e) {
// e.printStackTrace();
}
}
appDesktop.getComponent().detach();
DesktopCache desktopCache = ((SessionCtrl)currSess).getDesktopCache();