1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 18:25:40 +02:00

populateConfig() optimization

This commit is contained in:
Oleg Krasilnikov 2007-03-22 12:43:16 +00:00
parent 169297af7e
commit 941ffc1b63

View file

@ -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;
} }