Author: jflesch
Date: 2007-04-23 13:43:30 +0000 (Mon, 23 Apr 2007)
New Revision: 12899

Modified:
   trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
Log:
Unlock also the mainWindow when the user close the config window with its 
window manager

Modified: trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/ConfigWindow.java     2007-04-23 13:32:52 UTC 
(rev 12898)
+++ trunk/apps/Thaw/src/thaw/core/ConfigWindow.java     2007-04-23 13:43:30 UTC 
(rev 12899)
@@ -233,23 +233,34 @@
                }
        }

+       /* not for later : the cancelbutton just call this */
+       public void close() {
+               close(true);
+       }

-       public void close() {
+
+       public void close(boolean hideWin) {
                setChanged();
                this.notifyObservers(cancelButton); /* Equivalent to a click on 
the cancel button */

                core.getMainWindow().setEnabled(true);
-               setVisible(false);
+
+               if (hideWin)
+                       setVisible(false);
        }


+       public void setEnabled(boolean value) {
+               configWin.setEnabled(value);
+       }
+
+
        public void windowActivated(final WindowEvent e) {

        }

        public void windowClosing(final WindowEvent e) {
-               setChanged();
-               this.notifyObservers(cancelButton); /* Equivalent to a click on 
the cancel button */
+               close(false);
        }

        public void windowClosed(final WindowEvent e) {


Reply via email to