ref #5971: add an admin page to the prefs and add cdm pref nomenclatural code
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / datasource / CdmDataSourceRepository.java
index ccdd5e28591f67096c51dc5d77fa3b63f7914fc8..53f077581ec4e9189d82ea9e4b8a5b00aef19438 100644 (file)
@@ -30,7 +30,6 @@ import eu.etaxonomy.cdm.database.CdmPersistentDataSource;
 import eu.etaxonomy.cdm.database.DataSourceNotFoundException;
 import eu.etaxonomy.cdm.database.ICdmDataSource;
 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
-
 import eu.etaxonomy.taxeditor.model.MementoHelper;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
@@ -191,7 +190,7 @@ public class CdmDataSourceRepository{
                NomenclaturalCode applicationNomenclaturalCode = PreferencesUtil.getPreferredNomenclaturalCode(true);
 
                if( dataSourceNomenclaturalCode != null && ! dataSourceNomenclaturalCode.equals(applicationNomenclaturalCode)){
-                       PreferencesUtil.setPreferredNomenclaturalCode(dataSourceNomenclaturalCode);
+                       PreferencesUtil.setPreferredNomenclaturalCode(dataSourceNomenclaturalCode, true);
                        MessagingUtils.informationDialog("Nomenclatural Code Change", "The Datasource that was just " +
                                        "loaded has a different nomenclatural code than the one stored in Preferences. " +
                                        "The nomenclatural code was changed in the application.");