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
|
@ -664,11 +664,11 @@ public class WAttachment extends Window implements EventListener<Event>
|
|||
{
|
||||
if (result)
|
||||
{
|
||||
if (m_attachment.deleteEntry(index)){
|
||||
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