Revision: 3565
Author: [email protected]
Date: Thu May 27 15:05:10 2010
Log: Removing a listener that kept relationships around after they were deleted. This was causing odd exceptions when moving
tables after removing a relationship.
http://code.google.com/p/power-architect/source/detail?r=3565

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenContentPane.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenContentPane.java Wed May 26 14:48:19 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenContentPane.java Thu May 27 15:05:10 2010
@@ -259,6 +259,9 @@
         if (!removed) return false;
         fireChildRemoved(child.getClass(), child, index);
         child.setParent(null);
+        if (getPlayPen() != null) {
+ ((PlayPenComponent) child).removeSelectionListener(getPlayPen());
+        }
         if (playPen != null) {
             playPen.repaint();
         }

Reply via email to