1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 02:05:39 +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.
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;
}