mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
Bug 518837: Launch Config Dialog select first tab by default
Under certain circumstances the launch config dialog wouldn't have a tab selected when it opened. Changed the selection logic to explicitly select the first tab rather than assume that it would be selected. Change-Id: If2b3e2e933b12feb7e28a74270b34279ec891e54 Signed-off-by: Matthew Bastien <bastien.matthew@gmail.com>
This commit is contained in:
parent
ff9289d396
commit
bb7cbf8429
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ public class LaunchBarLaunchConfigDialog extends TitleAreaDialog implements ILau
|
||||||
configControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
configControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||||
|
|
||||||
if (lastSelection == null) {
|
if (lastSelection == null) {
|
||||||
// Assuming the first one ends up selected
|
// Select the first tab by default
|
||||||
|
tabFolder.setSelection(tabItem);
|
||||||
lastSelection = tabItem;
|
lastSelection = tabItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue