aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/population/FunctionSelector.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/gui/population/FunctionSelector.java')
-rw-r--r--src/jcgp/gui/population/FunctionSelector.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jcgp/gui/population/FunctionSelector.java b/src/jcgp/gui/population/FunctionSelector.java
index 0a9606f..28eb54d 100644
--- a/src/jcgp/gui/population/FunctionSelector.java
+++ b/src/jcgp/gui/population/FunctionSelector.java
@@ -50,8 +50,7 @@ public class FunctionSelector extends VBox {
l.addEventFilter(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
- target.getGene().setFunction(fs.getAllowedFunction(index));
- target.updateFunction();
+ target.setFunction(fs.getAllowedFunction(index));
dismiss();
}
});