fixed bug 11347
authortimkelly
Sat, 11 Sep 2010 13:36:12 -0500
changeset 1985 f2248d4fb37c
parent 1984 0dc4caef98fa
child 1986 30130ea9becd
fixed bug 11347
builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuildSettingsUI.java
builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuilderPreferencePage.java
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuildSettingsUI.java	Sat Sep 11 11:56:59 2010 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuildSettingsUI.java	Sat Sep 11 13:36:12 2010 -0500
@@ -471,4 +471,8 @@
 		dontCheckForExternalDependencies.setSelection(dontAsk);
 	}
 	
+	public boolean wantsSBSv1(){
+		return wantsSBSv1;
+	}
+	
 }
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuilderPreferencePage.java	Sat Sep 11 11:56:59 2010 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/ui/BuilderPreferencePage.java	Sat Sep 11 13:36:12 2010 -0500
@@ -85,7 +85,7 @@
 		store.setValue(BuilderPreferenceConstants.PREF_CONCURRENT_BUILD_JOBS, buildSettingsUI.getNumConcurrentBuildJobs());
 		store.setValue(BuilderPreferenceConstants.PREF_USE_BUILIN_X86_VARS, buildSettingsUI.getUseBuiltInEnvVars());
 		
-		if (SBSv2Utils.enableSBSv1Support()) {
+		if (SBSv2Utils.enableSBSv1Support() && buildSettingsUI.wantsSBSv1()) {
 			store.setValue(BuilderPreferenceConstants.PREF_CLEAN_LEVEL, buildSettingsUI.getDefaultCleanLevelv1());
 			store.setValue(BuilderPreferenceConstants.PREF_MANAGE_DEPENDENCIES, buildSettingsUI.getManageDependencies());
 			store.setValue(BuilderPreferenceConstants.PREF_MMP_CHANGED_ACTION_PROMPT, buildSettingsUI.getPromptForMMPChangedAction());