From 4b7dc8732d27d2a885b0452d90783046b54a669e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 13:08:37 +0100 Subject: [PATCH] Set the last insert edition of all inserted files after the project finished. --- src/de/todesbaum/jsite/application/Project.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); + } } } -- 2.7.4