mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Build Type comboBox false update when switching tab (#1119)
The Build type combo custom value was lost when switching to another tab and back again. Solution: Add modifyListener for buildTypeCombo and generator combo to keep properties up-to-date when switching tab. Fixes #1118
This commit is contained in:
parent
af359a7bba
commit
a104a4f88d
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,7 @@ public class CMakeBuildTab extends CommonBuildTab {
|
|||
generatorCombo = new Combo(cmakeGroup, SWT.DROP_DOWN);
|
||||
generatorCombo.setItems(generatorNames);
|
||||
generatorCombo.select(0);
|
||||
generatorCombo.addModifyListener(e -> updateLaunchConfigurationDialog());
|
||||
generatorCombo.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
|
@ -142,6 +143,7 @@ public class CMakeBuildTab extends CommonBuildTab {
|
|||
buildTypeCombo = new Combo(buildTypeComp, SWT.DROP_DOWN);
|
||||
buildTypeCombo.setItems(buildTypes);
|
||||
buildTypeCombo.setToolTipText(Messages.CMakeBuildTab_BuildTypeCombo_Tooltip);
|
||||
buildTypeCombo.addModifyListener(e -> updateLaunchConfigurationDialog());
|
||||
buildTypeCombo.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue