mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
BUG: fix up gui with values that stay around too long
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user