From: David ‘Bombe’ Roden Date: Sat, 17 Mar 2012 12:08:37 +0000 (+0100) Subject: Set the last insert edition of all inserted files after the project finished. X-Git-Tag: 0.10-rc1~32 X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=commitdiff_plain;h=4b7dc8732d27d2a885b0452d90783046b54a669e Set the last insert edition of all inserted files after the project finished. --- diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index 16acd49..b0ceb7f 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -426,7 +426,10 @@ public class Project implements Comparable { */ 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()); + } } }