summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java
diff options
context:
space:
mode:
authorJonathan Bauer2016-05-04 18:21:47 +0200
committerJonathan Bauer2016-05-04 18:21:47 +0200
commit2420003d435ba1800c6ec0874c08bef1c1cd9a7a (patch)
tree288c9058f308d16fd719ac3bd223b1f7244d6419 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java
parent[client] only switch to 'Advanced' tab if its input fields contain errors (diff)
downloadtutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.tar.gz
tutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.tar.xz
tutor-module-2420003d435ba1800c6ec0874c08bef1c1cd9a7a.zip
[client] publish image stuff 2.0
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java
index b4814713..fed5c1ab 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java
@@ -32,6 +32,7 @@ import org.openslx.dozmod.gui.wizard.ImageCreationWizard;
import org.openslx.dozmod.gui.wizard.LectureWizard;
import org.openslx.dozmod.permissions.ImagePerms;
import org.openslx.dozmod.thrift.ImageLocalDetailsActions;
+import org.openslx.dozmod.thrift.Session;
import org.openslx.dozmod.thrift.ThriftActions;
import org.openslx.dozmod.thrift.ThriftActions.DeleteCallback;
import org.openslx.dozmod.thrift.ThriftActions.DownloadCallback;
@@ -312,7 +313,7 @@ public class ImageListWindow extends ImageListWindowLayout implements DownloadCa
public void updated() {
ctlImageListViewer.refreshList(true, 100);
}
- }, new ImageLocalDetailsActions());
+ }, new ImageLocalDetailsActions(JOptionPane.getFrameForComponent(me)));
}
/**
@@ -413,6 +414,9 @@ public class ImageListWindow extends ImageListWindowLayout implements DownloadCa
@Override
public void requestShow() {
+ // we need to enable the "Show published images" button here, since we need to check
+ // Session.getSatApiVersion() which is not set when this class is instantiated
+ btnShowPublishedImages.setEnabled(Session.getSatApiVersion() >= 3);
ctlImageListViewer.refreshList(false, 1);
}