Author: jflesch
Date: 2007-04-23 13:32:52 +0000 (Mon, 23 Apr 2007)
New Revision: 12898

Modified:
   trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
Log:
Fix bug when displaying the blacklist from the config window : Don't forget to 
unlock the main window !

Modified: trunk/apps/Thaw/src/thaw/core/ConfigWindow.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/ConfigWindow.java     2007-04-23 13:27:37 UTC 
(rev 12897)
+++ trunk/apps/Thaw/src/thaw/core/ConfigWindow.java     2007-04-23 13:32:52 UTC 
(rev 12898)
@@ -114,10 +114,6 @@
                }

                configWin.setVisible(v);
-
-               if (v == false) {
-                       configWin.dispose();
-               }
        }

        public boolean addTab(final String name, final java.awt.Component 
panel) {
@@ -192,10 +188,7 @@
                if((e.getSource() == okButton)
                   || (e.getSource() == cancelButton)) {

-                       setChanged();
-                       this.notifyObservers(e.getSource());
-                       core.getMainWindow().setEnabled(true);
-                       setVisible(false);
+                       close();
                }

                if(e.getSource() == okButton) {
@@ -242,9 +235,11 @@


        public void close() {
-               setVisible(false);
                setChanged();
                this.notifyObservers(cancelButton); /* Equivalent to a click on 
the cancel button */
+
+               core.getMainWindow().setEnabled(true);
+               setVisible(false);
        }




Reply via email to