Clear properties are not saved, so make them dirty.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:12:35 +0000 (12:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:12:35 +0000 (12:12 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java

index 31e5def..c0001c4 100644 (file)
@@ -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());
        }
 
        /**