IDEMPIERE-2466 Creating new record on detail tab move focus on parent tab
This commit is contained in:
parent
34a1e631f4
commit
32d63d54b4
|
@ -828,7 +828,11 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace, IFi
|
||||||
ADWindow adwindow = ADWindow.findADWindow(adtabpanel);
|
ADWindow adwindow = ADWindow.findADWindow(adtabpanel);
|
||||||
if (adwindow != null) {
|
if (adwindow != null) {
|
||||||
IADTabpanel selectedADTabpanel = adwindow.getADWindowContent().getADTab().getSelectedTabpanel();
|
IADTabpanel selectedADTabpanel = adwindow.getADWindowContent().getADTab().getSelectedTabpanel();
|
||||||
if (selectedADTabpanel != adtabpanel)
|
IADTabpanel selectedADDetailTabpanel = null ;
|
||||||
|
if(selectedADTabpanel.getDetailPane() != null)
|
||||||
|
selectedADDetailTabpanel = selectedADTabpanel.getDetailPane().getSelectedADTabpanel();
|
||||||
|
|
||||||
|
if (selectedADTabpanel != adtabpanel && selectedADDetailTabpanel != null && selectedADDetailTabpanel != adtabpanel)
|
||||||
setFocus = false;
|
setFocus = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue