Revision: 3994
Author: [email protected]
Date: Thu Nov 25 13:33:37 2010
Log: Making the GUI re-enable properly after Compare DM has finished.
http://code.google.com/p/power-architect/source/detail?r=3994
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMPanel.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMPanel.java
Wed Nov 24 08:09:51 2010
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMPanel.java
Thu Nov 25 13:33:37 2010
@@ -1289,6 +1289,7 @@
targetComp.setCompareIndices(includeIndexes.isSelected());
} catch (SQLObjectException ex) {
+ reenableGUIComponents();
ASUtils.showExceptionDialog(session,
Messages.getString("CompareDMPanel.couldNotBeginDiffProcess"), ex);
//$NON-NLS-1$
return;
@@ -1375,6 +1376,8 @@
} catch (CancellationException e) {
reenableGUIComponents();
setFinished(true);
+ } finally {
+ reenableGUIComponents();
}
}