From 39ba50e1acccea934d6d082f66d35559295d57b0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 21 Jun 2011 16:25:17 +0200 Subject: Don't reset login panel after failed login git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@548 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/IView.java | 2 ++ src/jrummikub/view/impl/View.java | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/jrummikub/view') diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java index 8643781..c0dc675 100644 --- a/src/jrummikub/view/IView.java +++ b/src/jrummikub/view/IView.java @@ -221,6 +221,8 @@ public interface IView { */ public void showLoginPanel(boolean show); + public void resetLoginPanel(); + /** * Enable/disable pause mode * diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index 9a0bf9e..0f279ab 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -497,13 +497,14 @@ public class View extends JFrame implements IView { @Override public void showLoginPanel(boolean show) { - if (show) { - loginPanel.resetLoginPanel(); - } - loginPanel.setVisible(show); } + @Override + public void resetLoginPanel() { + loginPanel.resetLoginPanel(); + } + @Override public void showGameListPanel(boolean show) { if (show) { -- cgit v1.2.3