IDEMPIERE-2466 Creating new record on detail tab move focus on parent tab

This commit is contained in:
Deepak Pansheriya 2015-02-12 14:53:13 +05:30
parent 34a1e631f4
commit 32d63d54b4
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }
} }