summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window
diff options
context:
space:
mode:
authorStephan Schwaer2015-10-29 12:49:27 +0100
committerStephan Schwaer2015-10-29 12:49:27 +0100
commit3a1a2638891ada3d239e07e65e27fcb62933a347 (patch)
tree40e2379fd9fb151bad57d4f05a15112710ee57c6 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window
parent[client] Make caption of permission checks match col names in permission tables. (diff)
downloadtutor-module-3a1a2638891ada3d239e07e65e27fcb62933a347.tar.gz
tutor-module-3a1a2638891ada3d239e07e65e27fcb62933a347.tar.xz
tutor-module-3a1a2638891ada3d239e07e65e27fcb62933a347.zip
[client] Fix appearance of lecture and resulting NPE after deleting image the lecture linked to. Also make user feedback of deleting images more clear.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageListWindow.java2
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java5
2 files changed, 5 insertions, 2 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 9fd25b5c..eb63b1b7 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
@@ -34,6 +34,7 @@ import org.openslx.dozmod.permissions.ImagePerms;
import org.openslx.dozmod.thrift.ThriftActions;
import org.openslx.dozmod.thrift.ThriftActions.DeleteCallback;
import org.openslx.dozmod.thrift.ThriftActions.DownloadCallback;
+import org.openslx.dozmod.thrift.cache.LectureCache;
/**
* Window with the list of available images.
@@ -368,6 +369,7 @@ public class ImageListWindow extends ImageListWindowLayout implements DownloadCa
MessageType.INFO, LOGGER, null);
}
imageListViewer.refreshList(deletedAtLeastOne, 1000);
+ LectureCache.get(true);
}
/**
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
index 882309d6..f8fb7ac2 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
@@ -397,8 +397,9 @@ public class LectureListWindow extends LectureListWindowLayout {
if (fLectures.size() > 0) {
StringBuilder builder = new StringBuilder();
for (LectureSummary lecture : fLectures.keySet()) {
- builder.append('\n');
- builder.append(lecture.lectureName);
+ builder.append("\n\n");
+ builder.append(lecture.lectureName + " \n" );
+ builder.append("Begründung: " + fLectures.get(lecture).getLocalizedMessage());
LOGGER.error("Couldn't delete lecture " + lecture.lectureName + ", reason:", fLectures.get(lecture) );
// TODO Should the exception be printed in the debugger or is this to much information?
}