1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 01:25:23 +02:00

fix for 138324. Don't process combo selection until there is a change.

This commit is contained in:
David McKnight 2006-05-23 16:33:14 +00:00
parent d8c46828d7
commit ddc7285398

View file

@ -125,6 +125,12 @@ public class SystemComboBoxCellEditor extends CellEditor
comboBox.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
// DKM - only process this when there is a selection change
// fix for defect 138324
if (selection == comboBox.getSelectionIndex())
return; // no change
// must set the selection before getting value
selection = comboBox.getSelectionIndex();
System.out.println("Inside widgetSelected. selection = " + selection);