Bugfix: no quest data at startup = can't find start button = can't add listeners.

This commit is contained in:
Doublestrike
2012-01-24 09:02:41 +00:00
parent 1447a13f84
commit aff3898a3a

View File

@@ -84,6 +84,7 @@ public class ControlQuest {
}
private void addListeners() {
if (view.hasPreviousQuest()) {
view.getBtnStart().removeMouseListener(madStartGame);
view.getBtnStart().addMouseListener(madStartGame);
@@ -92,7 +93,7 @@ public class ControlQuest {
view.getPlantCheckBox().removeActionListener(actPlantSelect);
view.getPlantCheckBox().addActionListener(actPlantSelect);
}
}
/** @return ViewQuest */