Attemp to fixed browser refresh issue.
This commit is contained in:
parent
7276991db9
commit
5a41941d55
|
@ -249,9 +249,13 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
|
||||||
Object[] objects = new Object[0];
|
Object[] objects = new Object[0];
|
||||||
objects = collection.toArray(objects);
|
objects = collection.toArray(objects);
|
||||||
for(Object obj : objects) {
|
for(Object obj : objects) {
|
||||||
if (obj instanceof Component) {
|
try {
|
||||||
((Component)obj).detach();
|
if (obj instanceof Component) {
|
||||||
rootComponents.add((Component) obj);
|
((Component)obj).detach();
|
||||||
|
rootComponents.add((Component) obj);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
// e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appDesktop.getComponent().detach();
|
appDesktop.getComponent().detach();
|
||||||
|
|
Loading…
Reference in New Issue