diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-22 06:14:41 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-22 06:14:41 +0200 |
commit | 443e99450b172c06438ceb452e9b0dc3c715f914 (patch) | |
tree | 091dfe7f406f94087a980251ac439478c5b403d7 /src/jrummikub/control/SaveControl.java | |
parent | 86eeace6738c4715857df6730dff41e788918b43 (diff) | |
download | JRummikub-443e99450b172c06438ceb452e9b0dc3c715f914.tar JRummikub-443e99450b172c06438ceb452e9b0dc3c715f914.zip |
Fixed load warnings panels and everything
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@579 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/SaveControl.java')
-rw-r--r-- | src/jrummikub/control/SaveControl.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/jrummikub/control/SaveControl.java b/src/jrummikub/control/SaveControl.java index 5ecbb45..f348756 100644 --- a/src/jrummikub/control/SaveControl.java +++ b/src/jrummikub/control/SaveControl.java @@ -27,7 +27,6 @@ public class SaveControl { private IRoundState roundState; private Event3<GameSettings, GameState, IRoundState> loadEvent = new Event3<GameSettings, GameState, IRoundState>(); private Event loadErrorEvent = new Event(); - private Connection tempConnection; /** * Creates a new SaveControl @@ -42,34 +41,6 @@ public class SaveControl { save(file); } }); - - view.getLoadEvent().add(new IListener() { - @Override - public void handle() { - view.getQuitWarningPanel().setMode(QuitMode.QUIT_GAME); - view.showQuitWarningPanel(true); - - tempConnection = view.getQuitWarningPanel().getQuitEvent() - .add(new IListener() { - @Override - public void handle() { - view.showQuitWarningPanel(false); - view.load(); - tempConnection.remove(); - } - }); - } - }); - view.getQuitWarningPanel().getCancelEvent().add(new IListener() { - @Override - public void handle() { - view.showQuitWarningPanel(false); - if (tempConnection != null) { - tempConnection.remove(); - tempConnection = null; - } - } - }); view.getLoadFileEvent().add(new IListener1<File>() { @Override public void handle(final File file) { |