IDEMPIERE-1116 When attachment is deleted the preview and size are not cleared + NPE / peer review

This commit is contained in:
Carlos Ruiz 2013-07-06 18:16:33 -05:00
parent b45cd7b740
commit 189ef8425d
1 changed files with 3 additions and 3 deletions

View File

@ -664,10 +664,10 @@ public class WAttachment extends Window implements EventListener<Event>
{ {
if (result) if (result)
{ {
if (m_attachment.deleteEntry(index)){ if (m_attachment.deleteEntry(index)) {
cbContent.removeItemAt(index); cbContent.removeItemAt(index);
clearPreview(); clearPreview();
autoPreview(index-1, true); autoPreview (cbContent.getSelectedIndex(), true);
} }
m_change = true; m_change = true;