From: David ‘Bombe’ Roden Date: Fri, 23 Sep 2011 09:42:35 +0000 (+0200) Subject: Only set an album image ID if it is null. X-Git-Tag: 0.7^2~2^2~24 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=262f8b38695a4e3141bc0b828edd16e9eb2ea8ef;p=Sone.git Only set an album image ID if it is null. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index 2bbbb57..56bddb2 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -180,7 +180,7 @@ public class Album implements Fingerprintable { image.getAlbum().removeImage(image); } image.setAlbum(this); - if (imageIds.isEmpty()) { + if (imageIds.isEmpty() && (albumImage == null)) { albumImage = image.getId(); } if (!imageIds.contains(image.getId())) {