diff --git a/src/main/java/GUI/ProjectionHandler.java b/src/main/java/GUI/ProjectionHandler.java index f6b136a..7e0e48d 100644 --- a/src/main/java/GUI/ProjectionHandler.java +++ b/src/main/java/GUI/ProjectionHandler.java @@ -49,8 +49,14 @@ public class ProjectionHandler extends JDialog { try { competitionComboBox.getModel().setSelectedItem(agenda.getCompetition()); } catch (NotFoundInTable ignored) {} - dayComboBox.getModel().setSelectedItem(agenda.getDate()); - slotComboBox.getModel().setSelectedItem(agenda.getSlot()); + if (agenda.getDate() != null || agenda.getSlot() != null) { + updateMovies(); + updateDates(); + dayComboBox.getModel().setSelectedItem(agenda.getDate()); + updateSlots(); + slotComboBox.getModel().setSelectedItem(agenda.getSlot()); + updateRooms(); + } createUIComponents(); }