diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-10 21:23:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-10 21:23:00 (GMT) |
commit | 69b51cc2454e80d1da483d48f7ba4d5a32fc8a07 (patch) | |
tree | cdfa24baeb8220f048e3a395238b49292a4623c7 /Source/MFCDialog/CMakeSetupDialog.cpp | |
parent | e5394324954f0f6d0358fa360b3adc18ea541c94 (diff) | |
download | CMake-69b51cc2454e80d1da483d48f7ba4d5a32fc8a07.zip CMake-69b51cc2454e80d1da483d48f7ba4d5a32fc8a07.tar.gz CMake-69b51cc2454e80d1da483d48f7ba4d5a32fc8a07.tar.bz2 |
BUG: fix up gui with values that stay around too long
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 2cc6552..fae2e8b 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -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; } } } |