From e076c0b6eeef27cd6f8246c6a4e8b15addbc973f Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 9 Dec 2011 15:10:09 +0400 Subject: [PATCH] Fixed client bug where pressing "No" on "Are you sure you want to disconnect?" closed the client anyway. --- Mage.Client/src/main/java/mage/client/MageFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 8e8636a36e..12173e1798 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -623,7 +623,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { btnExit = new javax.swing.JButton(); lblStatus = new javax.swing.JLabel(); - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); setMinimumSize(new Dimension(600, 400)); desktopPane.setBackground(new java.awt.Color(204, 204, 204));