diff options
| author | Simon Rettberg | 2016-02-23 16:54:48 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2016-02-23 16:54:48 +0100 |
| commit | 9456dfc66d4ef8d63e0cee986af11c963bd56832 (patch) | |
| tree | 6a7b80352b37e36d7af07e3912402ca0d58f790b | |
| parent | [server] Write chunks to disk only once (diff) | |
| download | tutor-module-9456dfc66d4ef8d63e0cee986af11c963bd56832.tar.gz tutor-module-9456dfc66d4ef8d63e0cee986af11c963bd56832.tar.xz tutor-module-9456dfc66d4ef8d63e0cee986af11c963bd56832.zip | |
[client] Don't show location button in lecture details if no locations exist
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java index 33658d89..752c6625 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java @@ -212,8 +212,9 @@ public class LectureDetailsWindow extends LectureDetailsWindowLayout implements reactToChange(); } }); - if (MetaDataCache.getLocations() == null) + if (MetaDataCache.getLocations() == null || MetaDataCache.getLocations().isEmpty()) { btnLocations.setVisible(false); + } btnSaveChanges.addActionListener(new ActionListener() { @Override |
