@@ -246,7 +246,7 @@ private void setupForDrop() {
246
246
scheduleListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
247
247
_dropSchedule = _ui .getScheduleByName (newValue );
248
248
javafx .collections .ObservableList <String > days = FXCollections
249
- .observableArrayList (_ui .getDaysList ());
249
+ .observableArrayList (_ui .getDaysList (_dropSchedule ));
250
250
dayListView .setItems (days );
251
251
//dayListView.prefHeightProperty().bind(Bindings.size(days).multiply(24));
252
252
_employeeToAddOrDrop = null ;
@@ -259,7 +259,7 @@ private void setupForDrop() {
259
259
dayListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
260
260
_dropDay = Week .dayInt (newValue );
261
261
javafx .collections .ObservableList <String > hours = FXCollections
262
- .observableArrayList (_ui .getHoursList (newValue ));
262
+ .observableArrayList (_ui .getHoursList (_dropSchedule , newValue ));
263
263
hourListView .setItems (hours );
264
264
//hourListView.prefHeightProperty().bind(Bindings.size(hours).multiply(24));
265
265
_employeeToAddOrDrop = null ;
@@ -327,7 +327,7 @@ private void setupForAdd() {
327
327
scheduleListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
328
328
_addSchedule = _ui .getScheduleByName (newValue );
329
329
javafx .collections .ObservableList <String > days = FXCollections
330
- .observableArrayList (_ui .getDaysList ());
330
+ .observableArrayList (_ui .getDaysList (_addSchedule ));
331
331
dayListView .setItems (days );
332
332
dayListView .prefHeightProperty ().bind (Bindings .size (days ).multiply (24 ));
333
333
_employeeToAddOrDrop = null ;
@@ -340,7 +340,7 @@ private void setupForAdd() {
340
340
dayListView .getSelectionModel ().selectedItemProperty ().addListener ((observable , oldValue , newValue ) -> {
341
341
_addDay = Week .dayInt (newValue );
342
342
javafx .collections .ObservableList <String > hours = FXCollections
343
- .observableArrayList (_ui .getHoursList (newValue ));
343
+ .observableArrayList (_ui .getHoursList (_addSchedule , newValue ));
344
344
hourListView .setItems (hours );
345
345
hourListView .prefHeightProperty ().bind (Bindings .size (hours ).multiply (24 ));
346
346
_employeeToAddOrDrop = null ;
0 commit comments