BUG: fix up gui with values that stay around too long

This commit is contained in:
Bill Hoffman
2001-05-10 17:23:00 -04:00
parent e539432495
commit 69b51cc245
4 changed files with 13 additions and 33 deletions
+4 -12
View File
@@ -434,19 +434,11 @@ void CMakeSetupDialog::FillCacheManagerFromCacheGUI()
i != items.end(); ++i)
{
CPropertyItem* item = *i;
// check to see if the editor has removed the cache entry
if(item->m_Removed)
{
cmCacheManager::GetInstance()->RemoveCacheEntry((*i)->m_propName);
}
else
{
cmCacheManager::CacheEntry *entry =
cmCacheManager::CacheEntry *entry =
cmCacheManager::GetInstance()->GetCacheEntry((const char*)item->m_propName);
if (entry)
{
entry->m_Value = item->m_curValue;
}
if (entry)
{
entry->m_Value = item->m_curValue;
}
}
}