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,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;
|
||||||
|
|
Loading…
Reference in New Issue