IDEMPIERE-2616:Bug after closing Search Dialog
This commit is contained in:
parent
022d3ca910
commit
da2f37fbe0
|
@ -206,6 +206,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
||||||
infoWindow = MInfoWindow.get(p_keyColumn.replace("_ID", ""), null);
|
infoWindow = MInfoWindow.get(p_keyColumn.replace("_ID", ""), null);
|
||||||
addEventListener(WindowContainer.ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT, this);
|
addEventListener(WindowContainer.ON_WINDOW_CONTAINER_SELECTION_CHANGED_EVENT, this);
|
||||||
addEventListener(ON_RUN_PROCESS, this);
|
addEventListener(ON_RUN_PROCESS, this);
|
||||||
|
addEventListener(Events.ON_CLOSE, this);
|
||||||
|
|
||||||
} // InfoPanel
|
} // InfoPanel
|
||||||
|
|
||||||
|
@ -1375,7 +1376,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
||||||
// do nothing when parameter not change and at window mode, or at dialog mode but select non record
|
// do nothing when parameter not change and at window mode, or at dialog mode but select non record
|
||||||
onOk();
|
onOk();
|
||||||
}
|
}
|
||||||
}else if (event.getName().equals(Events.ON_CANCEL)){
|
}else if (event.getName().equals(Events.ON_CANCEL) || (event.getTarget().equals(this) && event.getName().equals(Events.ON_CLOSE))){
|
||||||
m_cancel = true;
|
m_cancel = true;
|
||||||
dispose(false);
|
dispose(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue