mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
populateConfig() optimization
This commit is contained in:
parent
169297af7e
commit
941ffc1b63
1 changed files with 2 additions and 4 deletions
|
@ -453,10 +453,8 @@ implements
|
|||
// Do nothing if widget not created yet.
|
||||
if (configSelector == null) return;
|
||||
|
||||
// if project changed, force re-read cfg.
|
||||
ICProjectDescription _prjDesc = CoreModel.getDefault().getProjectDescription(getProject());
|
||||
if (prjd == null || prjd.getProject() != _prjDesc.getProject()) {
|
||||
prjd = _prjDesc;
|
||||
if (prjd == null) {
|
||||
prjd = CoreModel.getDefault().getProjectDescription(getProject());
|
||||
cfgDescs = null;
|
||||
cfgIndex = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue