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
@@ -60,7 +60,7 @@ public class EditStagePanel extends JFrame{
boolean alreadyExists = false;
for (Stage stage : agenda.getStages())
{
if (stage.getName().equals(name))
if (stage.getName().equals(name) && !stage.equals(sta))
{
alreadyExists = true;
}