Fixed not editing when name was the same

This commit is contained in:
2015-02-26 19:42:38 +01:00
parent 1a3e8871a6
commit e50d7cf29d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ public class EditArtistPanel extends JFrame{
boolean alreadyExists = false;
for (Artist artist : agenda.getArtists())
{
if (artist.getName().equals(name))
if (artist.getName().equals(name) && !artist.equals(art))
{
alreadyExists = true;
}