Revision: 4057
Author: [email protected]
Date: Mon Apr 29 13:36:04 2013
Log: Fixed bug 2707 : changes made not to cut PlayPen as it is target
database and also TargetDatabaseNode of tree.
http://code.google.com/p/power-architect/source/detail?r=4057
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java Tue Dec
7 12:24:04 2010
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/DBTree.java Mon Apr
29 13:36:04 2013
@@ -1098,6 +1098,7 @@
}
for (SQLObject o : copyObjects) {
SQLDatabase target = session.getTargetDatabase();
+ if(o.equals(target)) break;
if (SQLObjectUtils.ancestorList(o).contains(target)) {
try {
o.getParent().removeChild(o);
--
---
You received this message because you are subscribed to the Google Groups "Architect Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.