Merge pull request #330 from bsinno/fix_type_tag_colorchange_detail

fix add and update tags and type color change details
This commit is contained in:
Michael Hirsch
2016-10-27 10:00:11 +02:00
committed by GitHub

View File

@@ -253,16 +253,16 @@ public abstract class AbstractCreateUpdateTagLayout<E extends NamedEntity> exten
private void previewButtonClicked() {
if (!tagPreviewBtnClicked) {
final String selectedOption = (String) optiongroup.getValue();
if (selectedOption == null || !selectedOption.equalsIgnoreCase(updateTagStr)) {
if (selectedOption == null) {
return;
}
if (tagNameComboBox.getValue() == null) {
colorPickerLayout
.setSelectedColor(ColorPickerHelper.rgbToColorConverter(ColorPickerConstants.DEFAULT_COLOR));
return;
} else {
colorPickerLayout.setSelectedColor(getColorForColorPicker());
}
colorPickerLayout.setSelectedColor(getColorForColorPicker());
}
tagPreviewBtnClicked = !tagPreviewBtnClicked;