Author: jfuerth
Date: Fri Sep  5 15:40:38 2008
New Revision: 2703

Modified:
   trunk/src/ca/sqlpower/architect/swingui/TablePane.java

Log:
Fix to make undo after a failed operation more reliable.

Modified: trunk/src/ca/sqlpower/architect/swingui/TablePane.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/TablePane.java      (original)
+++ trunk/src/ca/sqlpower/architect/swingui/TablePane.java Fri Sep 5 15:40:38 2008
@@ -772,10 +772,9 @@
logger.error("Error processing normalize PrimaryKey", e); //$NON-NLS-1$ ASUtils.showExceptionDialogNoReport(getParent().getOwner(), "Error processing normalize PrimaryKey after processing drop operation", e); //$NON-NLS-1$
+                } finally {
+                    pp.endCompoundEdit("End drag and drop"); //$NON-NLS-1$
                 }
-
-                // put the undo event adapter into a regular state
-                pp.endCompoundEdit("End drag and drop"); //$NON-NLS-1$
             }
         }
     }

Reply via email to