From 0219f12ea2ec89354ce2f239fb5e926fc48d500b Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Tue, 12 Mar 2013 16:53:38 -0500 Subject: [PATCH] IDEMPIERE-696 pop-up Attachment , click in refresh and this generate automatic download select file --- .../WEB-INF/src/org/adempiere/webui/panel/WAttachment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java index 8c36ad7359..e50590775b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WAttachment.java @@ -414,7 +414,7 @@ public class WAttachment extends Window implements EventListener public void displaySelected() { MAttachmentEntry entry = m_attachment.getEntry(displayIndex); 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());