summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r--src/jrummikub/view/impl/View.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index 06795aa..9a0bf9e 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -79,7 +79,6 @@ public class View extends JFrame implements IView {
private JFileChooser chooser;
private Event menuNewGameEvent = new Event();
- private Event menuQuitEvent = new Event();
private Event networkGameEvent = new Event();
private Event loadEvent = new Event();
@@ -148,11 +147,6 @@ public class View extends JFrame implements IView {
}
@Override
- public IEvent getMenuQuitEvent() {
- return menuQuitEvent;
- }
-
- @Override
public IEvent1<File> getLoadFileEvent() {
return loadFileEvent;
}
@@ -246,7 +240,7 @@ public class View extends JFrame implements IView {
gameMenu.addSeparator();
- gameMenu.add(createMenuItem("Beenden", menuQuitEvent));
+ gameMenu.add(createMenuItem("Beenden", quitEvent));
setJMenuBar(menuBar);
}
@@ -503,11 +497,11 @@ public class View extends JFrame implements IView {
@Override
public void showLoginPanel(boolean show) {
- loginPanel.setVisible(show);
-
if (show) {
loginPanel.resetLoginPanel();
}
+
+ loginPanel.setVisible(show);
}
@Override