try {
int row = tabInabilidityList.getSelectedRowSorted();
if (row > -1) {
InabilityData inabilityData = inabilityList.get(row);
InabilityData inability = (InabilityData) inabilityData.clone();
DlgInabilityEdit dlg = new DlgInabilityEdit(MainWindow.mainWindow, inability, getAuditManager());
dlg.setVisible(true);
if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
inabilityData.setDate(inability.getDate());
inabilityData.setDateAnswer(inability.getDateAnswer());
inabilityData.setDesc(inability.getDesc());
inabilityData.setLevelIn(inability.getLevelIn());
inabilityData.setLevelOut(inability.getLevelOut());