From 9b20570846756598aa377f1e4e69d23c26026801 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 3 Nov 2014 13:30:34 +0100 Subject: [client] save vmx file to currently selected download directory instead of the last download dir --- dozentenmodul/src/main/java/ftp/DownloadTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dozentenmodul/src/main/java/ftp/DownloadTask.java') diff --git a/dozentenmodul/src/main/java/ftp/DownloadTask.java b/dozentenmodul/src/main/java/ftp/DownloadTask.java index f040e20d..eee607be 100644 --- a/dozentenmodul/src/main/java/ftp/DownloadTask.java +++ b/dozentenmodul/src/main/java/ftp/DownloadTask.java @@ -175,7 +175,7 @@ public class DownloadTask extends SwingWorker { // build filename for the vmx, basicly the same as the path of the vmdk // just without the leading "prod/" and "vmx" instead of "vmdk" at the end. - String targetFilename = Config.getLastDownloadPath() + File.separator + + String targetFilename = saveDir + File.separator + imageData.get("path").replaceFirst("^prod/", "").replaceFirst("\\.vmdk$", "") + ".vmx"; try { // try to write it to file -- cgit v1.2.3-55-g7522