Revision: 3203
Author: [email protected]
Date: Mon Dec 14 13:14:06 2009
Log: The remove child listener was trying to compare the source of the events to a list of SQLColumns. This is left over from the refactoring that removed the SQLTable's folder class.
http://code.google.com/p/power-architect/source/detail?r=3203

Modified:
/branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/TablePane.java

=======================================
--- /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/TablePane.java Tue Dec 1 14:48:38 2009 +++ /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/TablePane.java Mon Dec 14 13:14:06 2009
@@ -267,7 +267,7 @@
          * delegate) with a PropertyChangeEvent.
          */
         public void childRemovedImpl(SPChildEvent e) {
-            if (e.getSource() == model.getColumnsFolder()) {
+ if (e.getSource() == model && e.getChild() instanceof SQLColumn) {
                 if (logger.isDebugEnabled()) {
logger.debug("Column removed. Syncing select/highlight lists. Removed index="+e.getIndex()); //$NON-NLS-1$ //$NON-NLS-2$
                 }

Reply via email to