Project

General

Profile

« Previous | Next » 

Revision 888ca58b

Added by Katja Luther almost 7 years ago

if multilanguage text isEmpty translation wizard does not open

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/MultilanguageTextElement.java
65 65
		public void widgetSelected(SelectionEvent e) {
66 66
			Map<Language, LanguageString> multilanguageText = getMultilanguageText();
67 67

  
68
			if (multilanguageText == null){
68
			if (multilanguageText.isEmpty()){
69 69
				MessagingUtils.warningDialog("No text to translate", getClass(), "The text is empty and therefore can not be translated");
70
				return;
70 71
			}
71 72

  
72 73
			TranslationWizard wizard = new TranslationWizard(multilanguageText);

Also available in: Unified diff