Revision: 3567
Author: [email protected]
Date: Fri May 28 07:30:18 2010
Log: Removed one dialog from the revision list panel. Instead of telling the user the revision range is illegal, it will just fix it.
http://code.google.com/p/power-architect/source/detail?r=3567

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/enterprise/RevisionListPanel.java Wed May 26 14:59:32 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/enterprise/RevisionListPanel.java Fri May 28 07:30:18 2010
@@ -123,18 +123,13 @@
int difference = session.getUpdater().getRevision() - currentVersion;
             if (difference > 0) currentVersion += difference;

-            String message = null;
             if (toVersion.getValue() > currentVersion) {
                 toVersion.setValue(currentVersion);
             } else if (fromVersion.getValue() > toVersion.getValue()) {
- message = "Cannot show revisions from a higher version to a lower version";
                 long to = toVersion.getValue() - DEFAULT_REVISION_RANGE;
                 if (to <= 0) to = 1;
                 fromVersion.setValue(to);
             }
-            if (message != null) {
-                JOptionPane.showMessageDialog(dialogOwner, message);
-            }

             if (difference > 0) {
// If the end of the filter range was the previously most recent revision,

Reply via email to