diff options
-rw-r--r-- | src/jrummikub/view/impl/View.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index 15142e3..d04a136 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -539,16 +539,14 @@ public class View extends JFrame implements IView { } public void showQuitWarningPanel(boolean show) { + if (show) { + setEnabled(true); + } quitWarningFrame.setLocationRelativeTo(this); quitWarningFrame.setVisible(show); - - setEnabled(!show); - /* - * mainLayer.setEnabled(!show); menuBar.setEnabled(!show); - * settingsPanel.setEnabled(!show); loginPanel.setEnabled(!show); - * scorePanel.setEnabled(!show); gameListPanel.setEnabled(!show); - * connectPanel.setEnabled(!show); - */ + if (!show) { + setEnabled(false); + } } @Override @@ -664,8 +662,8 @@ public class View extends JFrame implements IView { winPanel.setType(type); winPanel.setVisible(showWinPanel); - playerPanel.setVisible((!showStartTurnPanel) - && (!showWinPanel) && type != null); + playerPanel.setVisible((!showStartTurnPanel) && (!showWinPanel) + && type != null); if (type == BottomPanelType.START_GAME_PANEL) { table.setStoneSets(Collections |