From: David ‘Bombe’ Roden Date: Tue, 12 Apr 2011 19:59:26 +0000 (+0200) Subject: Set album as parent of added image. X-Git-Tag: beta-freefall-0.6.2-1~30 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c06b0a6bc5e67e6cb5564631d5cc0e3a0dd57eb0;p=Sone.git Set album as parent of added image. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index a0a85de..88bef2c 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -158,6 +158,7 @@ public class Album implements Fingerprintable { */ public void addImage(Image image) { Validation.begin().isNotNull("Image", image).check().isNotNull("Image Owner", image.getSone()).check().isEqual("Image Owner", image.getSone(), sone).check(); + image.setAlbum(this); images.add(image); }