fix add and update tags and type color change details

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
Michael Hirsch
2016-10-27 10:00:11 +02:00
parent 39712b90a3
commit 3bd1c93189

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;