diff --git a/src/main/java/Gui/ActionHandler.java b/src/main/java/Gui/ActionHandler.java index e32747c..3f32cd8 100644 --- a/src/main/java/Gui/ActionHandler.java +++ b/src/main/java/Gui/ActionHandler.java @@ -16,9 +16,11 @@ public class ActionHandler implements ActionListener { System.exit(0); } - GameGui.questionNr = 0; - GameGui.LosingPanel.setVisible(false); - restartGame.startGame(); + if (e.getSource() == GameGui.RestartBtn) { + GameGui.questionNr = 0; + GameGui.LosingPanel.setVisible(false); + restartGame.startGame(); + } }