From: David ‘Bombe’ Roden Date: Sat, 28 Jul 2012 10:12:35 +0000 (+0200) Subject: Clear properties are not saved, so make them dirty. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b2ab3fd2aefa2815f8c55b5b0e8b8d2eb912a192;p=demoscenemusic.git Clear properties are not saved, so make them dirty. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index 31e5def..c0001c4 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -528,7 +528,7 @@ public class DataManager { query.addWhereClause(new ValueFieldWhereClause(new ValueField("TRACK_DERIVATIVES.ID", new StringParameter(trackDerivative.getId())))); database.update(query); /* remove the properties. */ - saveProperties(new Properties(), "TRACK_DERIVATIVE_PROPERTIES", "TRACK_DERIVATIVE", trackDerivative.getId()); + saveProperties(new Properties().set("dirty", "true").removeAll(), "TRACK_DERIVATIVE_PROPERTIES", "TRACK_DERIVATIVE", trackDerivative.getId()); } /**