From: David ‘Bombe’ Roden Date: Tue, 22 Mar 2011 19:44:06 +0000 (+0100) Subject: Only add album to Sone if it has no parent album. X-Git-Tag: beta-freefall-0.6.2-1~98 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=566dc921173aa430f2dca78de098c47c4cc92a8c;p=Sone.git Only add album to Sone if it has no parent album. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 585d71f..9c2cedc 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1710,8 +1710,9 @@ public class Core implements IdentityListener, UpdateListener { album.setSone(sone); if (parent != null) { parent.addAlbum(album); + } else { + sone.addAlbum(album); } - sone.addAlbum(album); return album; }