From 8671c5d876cfa2585e2325c8d60417acdc77c616 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 12 Oct 2017 16:38:52 +0100 Subject: [PATCH] disabled Archaeopteryx quit message --- .../archaeopteryx/MainFrameApplication.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java b/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java index 51bb251..2c9b585 100644 --- a/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java +++ b/forester/java/src/org/forester/archaeopteryx/MainFrameApplication.java @@ -309,21 +309,21 @@ public final class MainFrameApplication extends MainFrame { @Override public void internalFrameClosing( final InternalFrameEvent e ) { if ( isUnsavedDataPresent() ) { - final int r = JOptionPane.showConfirmDialog( null, - "Exit despite potentially unsaved changes?", - "Exit?", + final int r = JOptionPane.showConfirmDialog( _mainpanel, + "Close Archaeopteryx despite potentially unsaved changes?", + "Close viewer?", JOptionPane.YES_NO_OPTION ); if ( r != JOptionPane.YES_OPTION ) { return; } } - else { - final int r = JOptionPane - .showConfirmDialog( null, "Exit Archaeopteryx?", "Exit?", JOptionPane.YES_NO_OPTION ); - if ( r != JOptionPane.YES_OPTION ) { - return; - } - } +// else { +// final int r = JOptionPane +// .showConfirmDialog( null, "Exit Archaeopteryx?", "Exit?", JOptionPane.YES_NO_OPTION ); +// if ( r != JOptionPane.YES_OPTION ) { +// return; +// } +// } exit(); } } ); -- 1.7.10.2