mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 09:35:23 +02:00
fix for 138324. Don't process combo selection until there is a change.
This commit is contained in:
parent
d8c46828d7
commit
ddc7285398
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue