Merge pull request #47 from PM2-IT21bWIN-ruiz-mach-krea/fix_places_are_deleted_
fixed places are deleted.
This commit is contained in:
		
						commit
						a6f14b94bd
					
				| 
						 | 
				
			
			@ -19,14 +19,6 @@ public class Game implements Serializable {
 | 
			
		|||
        this.previousGame2 = previousGame2;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Place getLocation() {
 | 
			
		||||
        return place;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setLocation(Place place) {
 | 
			
		||||
        this.place = place;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public int getPoints1() {
 | 
			
		||||
        return points1;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -74,7 +74,7 @@ public class GameController extends FXController{
 | 
			
		|||
    public void setup(TournamentDecorator tournamentDecorator, FileIO fileIO, FactoryDecorator factoryDecorator, Pane pane, GameDecorator gameDecorator) {
 | 
			
		||||
        setTournamentDecorator(tournamentDecorator);
 | 
			
		||||
        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));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue