From c06b0a6bc5e67e6cb5564631d5cc0e3a0dd57eb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 12 Apr 2011 21:59:26 +0200 Subject: [PATCH] Set album as parent of added image. --- src/main/java/net/pterodactylus/sone/data/Album.java | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.7.4