@@ -246,7 +246,7 @@ private void setupForDrop() {
246246 scheduleListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
247247 _dropSchedule = _ui .getScheduleByName (newValue );
248248 javafx .collections .ObservableList <String > days = FXCollections
249- .observableArrayList (_ui .getDaysList ());
249+ .observableArrayList (_ui .getDaysList (_dropSchedule ));
250250 dayListView .setItems (days );
251251 //dayListView.prefHeightProperty().bind(Bindings.size(days).multiply(24));
252252 _employeeToAddOrDrop = null ;
@@ -259,7 +259,7 @@ private void setupForDrop() {
259259 dayListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
260260 _dropDay = Week .dayInt (newValue );
261261 javafx .collections .ObservableList <String > hours = FXCollections
262- .observableArrayList (_ui .getHoursList (newValue ));
262+ .observableArrayList (_ui .getHoursList (_dropSchedule , newValue ));
263263 hourListView .setItems (hours );
264264 //hourListView.prefHeightProperty().bind(Bindings.size(hours).multiply(24));
265265 _employeeToAddOrDrop = null ;
@@ -327,7 +327,7 @@ private void setupForAdd() {
327327 scheduleListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
328328 _addSchedule = _ui .getScheduleByName (newValue );
329329 javafx .collections .ObservableList <String > days = FXCollections
330- .observableArrayList (_ui .getDaysList ());
330+ .observableArrayList (_ui .getDaysList (_addSchedule ));
331331 dayListView .setItems (days );
332332 dayListView .prefHeightProperty ().bind (Bindings .size (days ).multiply (24 ));
333333 _employeeToAddOrDrop = null ;
@@ -340,7 +340,7 @@ private void setupForAdd() {
340340 dayListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
341341 _addDay = Week .dayInt (newValue );
342342 javafx .collections .ObservableList <String > hours = FXCollections
343- .observableArrayList (_ui .getHoursList (newValue ));
343+ .observableArrayList (_ui .getHoursList (_addSchedule , newValue ));
344344 hourListView .setItems (hours );
345345 hourListView .prefHeightProperty ().bind (Bindings .size (hours ).multiply (24 ));
346346 _employeeToAddOrDrop = null ;
0 commit comments