summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2014-11-03 13:30:34 +0100
committerJonathan Bauer2014-11-03 13:30:34 +0100
commit9b20570846756598aa377f1e4e69d23c26026801 (patch)
tree238991dbeba092039e5829e0f1c493260fc3bcf7
parent[client] change vmx template from hostonly to nat (diff)
downloadtutor-module-9b20570846756598aa377f1e4e69d23c26026801.tar.gz
tutor-module-9b20570846756598aa377f1e4e69d23c26026801.tar.xz
tutor-module-9b20570846756598aa377f1e4e69d23c26026801.zip
[client] save vmx file to currently selected download directory instead of the last download dir
-rw-r--r--dozentenmodul/src/main/java/ftp/DownloadTask.java2
1 files changed, 1 insertions, 1 deletions
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<Void, Void> {
// 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