IDEMPIERE-1116 When attachment is deleted the preview and size are not cleared + NPE / peer review
This commit is contained in:
parent
b45cd7b740
commit
189ef8425d
|
@ -667,7 +667,7 @@ public class WAttachment extends Window implements EventListener<Event>
|
|||
if (m_attachment.deleteEntry(index)) {
|
||||
cbContent.removeItemAt(index);
|
||||
clearPreview();
|
||||
autoPreview(index-1, true);
|
||||
autoPreview (cbContent.getSelectedIndex(), true);
|
||||
}
|
||||
|
||||
m_change = true;
|
||||
|
|
Loading…
Reference in New Issue