Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
index 432ee6fd3..e35bc4b95 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
@@ -186,8 +186,10 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
public void initializeValue(IPreferenceStore store) {
final Object value= loadValue(store, fKey);
final int index= fValues.indexOf(value);
- if (index >= 0 && index < fLabels.length)
- fButtons[index].setSelection(true);
+ for (int i = 0; i < fButtons.length; i++) {
+ Button b = fButtons[i];
+ b.setSelection(index == i);
+ }
}
public void performOk(IPreferenceStore store) {

Back to the top