Project

General

Profile

« Previous | Next » 

Revision f15b2642

Added by Katja Luther over 5 years ago

do not save cdm preference which are not changed

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/NameDetailsViewConfiguration.java
46 46
    boolean isShowNameRelationship;
47 47
    boolean isShowHybrid;
48 48
    boolean isShowNameApprobiation;
49

  
49
    NameDetailsConfigurator nameDetailsConfig = null;
50 50

  
51 51
    @Override
52 52
    protected Control createContents(Composite parent) {
53 53
        final CLabel description = new CLabel(parent, SWT.NULL);
54 54
        description.setText(Messages.NameDetailsViewConfiguration_description);
55
        NameDetailsConfigurator nameDetailsConfig = PreferencesUtil.getPreferredNameDetailsConfiguration(false);
55
        nameDetailsConfig = PreferencesUtil.getPreferredNameDetailsConfiguration(false);
56 56
        if (nameDetailsConfig == null){
57 57
            nameDetailsConfig = new NameDetailsConfigurator(false);
58 58
        }
......
328 328

  
329 329
    @Override
330 330
    public boolean performOk() {
331
        if (nameDetailsConfig == null){
332
            return true;
333
        }
331 334
        ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration();
332 335
        if (controller == null){
333 336
            return false;

Also available in: Unified diff