Set the last insert edition of all inserted files after the project finished.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:08:37 +0000 (13:08 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:08:37 +0000 (13:08 +0100)
src/de/todesbaum/jsite/application/Project.java

index 16acd49..b0ceb7f 100644 (file)
@@ -426,7 +426,10 @@ public class Project implements Comparable<Project> {
         */
        public void copyHashes() {
                for (FileOption fileOption : fileOptions.values()) {
-                       fileOption.setLastInsertHash(fileOption.getCurrentHash());
+                       if (!fileOption.getCurrentHash().equals(fileOption.getLastInsertHash())) {
+                               fileOption.setLastInsertEdition(edition);
+                               fileOption.setLastInsertHash(fileOption.getCurrentHash());
+                       }
                }
        }