diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 16:11:20 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 16:11:20 +0200 |
commit | 92fe29000b3a8da2adc498154521e7969b6f9c5f (patch) | |
tree | 03017bc91e5903ac011ae1a833bca82136871159 /src/jrummikub/control/ApplicationControl.java | |
parent | 0506b7f154a816d591f580466a294e1b6820774b (diff) | |
download | JRummikub-92fe29000b3a8da2adc498154521e7969b6f9c5f.tar JRummikub-92fe29000b3a8da2adc498154521e7969b6f9c5f.zip |
Load error, save default file, save disable
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@483 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/ApplicationControl.java')
-rw-r--r-- | src/jrummikub/control/ApplicationControl.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jrummikub/control/ApplicationControl.java b/src/jrummikub/control/ApplicationControl.java index bcf497f..d07a0f6 100644 --- a/src/jrummikub/control/ApplicationControl.java +++ b/src/jrummikub/control/ApplicationControl.java @@ -65,6 +65,12 @@ public class ApplicationControl { } }); + saveControl.getLoadErrorEvent().add(new IListener() { + @Override + public void handle() { + view.showError(); + } + }); } private void addLoginControlListeners() { @@ -123,10 +129,12 @@ public class ApplicationControl { saveControl.setGameState(null); settingsControl = new SettingsControl(view, new GameSettings()); + view.enableSave(false); settingsControl.getStartGameEvent().add(new IListener1<GameSettings>() { @Override public void handle(GameSettings settings) { + view.enableSave(true); settingsControl = null; saveControl.setGameSettings(settings); |