IDEMPIERE 5929 - Looping on ZK happening on Exceptions caused by IServerPushCallback.updateUI implementations (#2106)
* IDEMPIERE-5929 - Fix replace tab method to add a window if there is no refTab reference * IDEMPIERE-5929 - Removes unnecessary NPE handling when replacing tabs * IDEMPIERE-5929 - Adjust code indentation/style * IDEMPIERE-5929 - Restores NPE handling for replacing tabs * IDEMPIERE-5929 - Reverts changes on WindowContainer This commit reverts three other commits: 4433f834f5a3892aec2c1486e30b846fbf957f8f c6c6d2abf9a44d51f41d68a9e3e18ae04863435c 64916156eb43da481601889837df8571a5e1d596
This commit is contained in:
parent
af67186e51
commit
bcbfcbfeb9
|
@ -287,7 +287,12 @@ public abstract class TabbedDesktop extends AbstractDesktop {
|
|||
int windowNo = (Integer)windowNoAttribute;
|
||||
refTab = windowContainer.getTab(windowNo);
|
||||
}
|
||||
|
||||
if (refTab == null)
|
||||
windowContainer.addWindow(tabPanel, title, true, null);
|
||||
else
|
||||
windowContainer.replace(refTab, window, title);
|
||||
|
||||
}
|
||||
else {
|
||||
windowContainer.addWindow(tabPanel, title, true, null);
|
||||
|
|
Loading…
Reference in New Issue