BF [ 1779312 ] Open Attachment temporary file bug

This commit is contained in:
deathmeat 2007-08-22 10:13:38 +00:00
parent accb337873
commit 346812057a
1 changed files with 3 additions and 1 deletions

View File

@ -504,7 +504,9 @@ public final class Attachment extends CDialog
try
{
String fileName = System.getProperty("java.io.tmpdir") + m_attachment.getEntryName(index);
String fileName = System.getProperty("java.io.tmpdir") +
System.getProperty("file.separator") +
m_attachment.getEntryName(index);
File tempFile = new File(fileName);
m_attachment.getEntryFile(index, tempFile);