mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +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.
|
// Do nothing if widget not created yet.
|
||||||
if (configSelector == null) return;
|
if (configSelector == null) return;
|
||||||
|
|
||||||
// if project changed, force re-read cfg.
|
if (prjd == null) {
|
||||||
ICProjectDescription _prjDesc = CoreModel.getDefault().getProjectDescription(getProject());
|
prjd = CoreModel.getDefault().getProjectDescription(getProject());
|
||||||
if (prjd == null || prjd.getProject() != _prjDesc.getProject()) {
|
|
||||||
prjd = _prjDesc;
|
|
||||||
cfgDescs = null;
|
cfgDescs = null;
|
||||||
cfgIndex = 0;
|
cfgIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue