IDEMPIERE-696 pop-up Attachment , click in refresh and this generate automatic download select file

This commit is contained in:
Richard Morales 2013-03-12 16:53:38 -05:00
parent 449bb69f26
commit 0219f12ea2
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ public class WAttachment extends Window implements EventListener<Event>
public void displaySelected() { public void displaySelected() {
MAttachmentEntry entry = m_attachment.getEntry(displayIndex); MAttachmentEntry entry = m_attachment.getEntry(displayIndex);
if (log.isLoggable(Level.CONFIG)) log.config("Index=" + displayIndex + " - " + entry); if (log.isLoggable(Level.CONFIG)) log.config("Index=" + displayIndex + " - " + entry);
if (entry != null && entry.getData() != null) if (entry != null && entry.getData() != null && autoPreviewList.contains(entry.getContentType()))
{ {
if (log.isLoggable(Level.CONFIG)) log.config(entry.toStringX()); if (log.isLoggable(Level.CONFIG)) log.config(entry.toStringX());