summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-17 15:41:53 +0200
committerJonathan Bauer2018-04-17 15:41:53 +0200
commit0043934110b0bd9621b8a8494ca25999f3d0d5fb (patch)
treefeb49b6d0a6f40ac391c6f018116b6f96e2fa5b7
parent[client] add error message for humans (diff)
downloadtutor-module-0043934110b0bd9621b8a8494ca25999f3d0d5fb.tar.gz
tutor-module-0043934110b0bd9621b8a8494ca25999f3d0d5fb.tar.xz
tutor-module-0043934110b0bd9621b8a8494ca25999f3d0d5fb.zip
[client] fix wrong filter selected when creating new vm
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
index 1b2a233a..6345995c 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
@@ -97,6 +97,7 @@ public class ImageUploadPage extends ImageUploadPageLayout {
fc.addChoosableFileFilter(vboxFilter);
fc.addChoosableFileFilter(qemuFilter);
fc.addChoosableFileFilter(allSupportedFilter);
+ fc.setFileFilter(allSupportedFilter);
// differentiate between existing and new VMs
if (existingImage != null) {
if (existingImage.virtId.equals("vmware")) {
@@ -105,9 +106,6 @@ public class ImageUploadPage extends ImageUploadPageLayout {
fc.setFileFilter(vboxFilter);
}
}
- if (fc.getFileFilter() == null) {
- fc.setFileFilter(allSupportedFilter);
- }
int action = fc.showOpenDialog(getDialog());
File file = fc.getSelectedFile();