From f19d4910d09f368b6c4f21159af84fb04217d5ef Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 14 May 2014 18:45:11 +0200 Subject: [PATCH] * Client - Fixed that saying "No" to confirm close didn't stop closing the client. --- Mage.Client/src/main/java/mage/client/MageFrame.form | 7 +++++-- Mage.Client/src/main/java/mage/client/MageFrame.java | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.form b/Mage.Client/src/main/java/mage/client/MageFrame.form index 3eae2cc258..b50ab5dfca 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.form +++ b/Mage.Client/src/main/java/mage/client/MageFrame.form @@ -2,13 +2,14 @@
- + + @@ -51,7 +52,9 @@ - + + + diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 840a401521..09cca437fc 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -744,7 +744,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { jSeparator8 = new javax.swing.JToolBar.Separator(); lblStatus = new javax.swing.JLabel(); - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setMinimumSize(new java.awt.Dimension(1024, 768)); desktopPane.setBackground(new java.awt.Color(204, 204, 204)); @@ -949,6 +949,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { System.exit(0); } + @Override public void reconnect() { session.disconnect(false); tablesPane.clearChat();