Revision a53422d5
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameTypeDesignationElement.java | ||
---|---|---|
87 | 87 |
} else if (eventSource == selection_typeName) { |
88 | 88 |
getEntity().setTypeName(selection_typeName.getEntity()); |
89 | 89 |
} else if (eventSource == combo_typeStatus) { |
90 |
if (entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){ |
|
91 |
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5); |
|
90 |
if ((combo_typeStatus.getSelection() == null && entity.getCitation() != null)){ |
|
91 |
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5); |
|
92 |
if (!ok){ |
|
93 |
combo_typeStatus.setSelection(entity.getTypeStatus()); |
|
94 |
return; |
|
95 |
} |
|
96 |
}else if ( entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){ |
|
97 |
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5); |
|
92 | 98 |
if (!ok){ |
93 | 99 |
combo_typeStatus.setSelection(entity.getTypeStatus()); |
94 | 100 |
return; |
Also available in: Unified diff
ref #8136: fix handling if status is set to null