fixed places are deleted. #47

Merged
schrom01 merged 1 commits from fix_places_are_deleted_ into main 2022-05-13 15:38:42 +02:00
2 changed files with 1 additions and 9 deletions
Showing only changes of commit 0a7ca1ac3e - Show all commits

View File

@ -19,14 +19,6 @@ public class Game implements Serializable {
this.previousGame2 = previousGame2; this.previousGame2 = previousGame2;
} }
public Place getLocation() {
return place;
}
public void setLocation(Place place) {
this.place = place;
}
public int getPoints1() { public int getPoints1() {
return points1; return points1;
} }

View File

@ -74,7 +74,7 @@ public class GameController extends FXController{
public void setup(TournamentDecorator tournamentDecorator, FileIO fileIO, FactoryDecorator factoryDecorator, Pane pane, GameDecorator gameDecorator) { public void setup(TournamentDecorator tournamentDecorator, FileIO fileIO, FactoryDecorator factoryDecorator, Pane pane, GameDecorator gameDecorator) {
setTournamentDecorator(tournamentDecorator); setTournamentDecorator(tournamentDecorator);
this.gameDecorator = gameDecorator; this.gameDecorator = gameDecorator;
placesChoiceBox.getSelectionModel().selectedItemProperty().addListener((ObservableValue<? extends Place> observable, Place oldValue, Place newValue) -> saveGamePlace(newValue)); placesChoiceBox.getSelectionModel().selectedItemProperty().addListener((ObservableValue<? extends Place> observable, Place oldValue, Place newValue) -> saveGamePlace(newValue == null ? oldValue : newValue));
} }
} }