summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
diff options
context:
space:
mode:
authorSimon Rettberg2018-06-27 10:52:16 +0200
committerSimon Rettberg2018-06-27 10:52:16 +0200
commiteeb2637849c6e8a952b29e802e149a2148e1b8a6 (patch)
tree02a7a3ce0cbde3e2f534588a394bfc2e9fac6ac4 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
parent[client] Clean up change monitors: Unify generic listener (diff)
downloadtutor-module-eeb2637849c6e8a952b29e802e149a2148e1b8a6.tar.gz
tutor-module-eeb2637849c6e8a952b29e802e149a2148e1b8a6.tar.xz
tutor-module-eeb2637849c6e8a952b29e802e149a2148e1b8a6.zip
[client] Fix string compare
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
index 87e232fe..7045673a 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java
@@ -490,7 +490,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe
*/
private void uploadToMaster() {
// 04.2018: bail if we the user tries to publish a non-vmware image.
- if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS) && image.virtId != TConst.VIRT_VMWARE) {
+ if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS) && !TConst.VIRT_VMWARE.equals(image.virtId)) {
Gui.showMessageBox(
MetaDataCache.getVirtualizerById(image.virtId).virtName
+ " ist derzeit nicht für den öffentlichen Austausch freigegeben.",