summaryrefslogtreecommitdiffstats
path: root/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@kitware.com>2001-11-28 00:38:05 (GMT)
committerLuis Ibanez <luis.ibanez@kitware.com>2001-11-28 00:38:05 (GMT)
commit10097d76851c69912fcb4e9e1e8b50aa077ec28e (patch)
tree3a21250e0cd420ba16e18ee1b32b61197a7b07d7 /Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
parent0180d3156f6f016d0923fd150d1a93d883b0b257 (diff)
downloadCMake-10097d76851c69912fcb4e9e1e8b50aa077ec28e.zip
CMake-10097d76851c69912fcb4e9e1e8b50aa077ec28e.tar.gz
CMake-10097d76851c69912fcb4e9e1e8b50aa077ec28e.tar.bz2
FIX: When switching from one project to another the CacheGUI wasn't being
cleared. Values from one project were mixed into the other.
Diffstat (limited to 'Source/FLTKDialog/CMakeSetupGUIImplementation.cxx')
-rw-r--r--Source/FLTKDialog/CMakeSetupGUIImplementation.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
index 088732d..95acdf9 100644
--- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
+++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
@@ -243,7 +243,8 @@ CMakeSetupGUIImplementation
{
m_BuildPathChanged = true;
m_WhereBuild = expandedAbsolutePath;
- LoadCacheFromDiskToGUI();
+ m_CacheEntriesList.RemoveAll(); // remove data from other project
+ this->LoadCacheFromDiskToGUI();
}
else
{
@@ -409,7 +410,7 @@ CMakeSetupGUIImplementation
{
cmCacheManager::GetInstance()->LoadCache( m_WhereBuild.c_str() );
this->FillCacheGUIFromCacheManager();
- }
+ }
}
@@ -635,6 +636,7 @@ CMakeSetupGUIImplementation
input >> onedirectory;
m_WhereBuild = onedirectory;
binaryPathTextInput->value( m_WhereBuild.c_str() );
+ LoadCacheFromDiskToGUI();
} else
if( key == "Binary" )
{
@@ -753,6 +755,8 @@ CMakeSetupGUIImplementation
recentBinaryDirectoriesBrowser->data( selected ));
binaryPathTextInput->value( m_WhereBuild.c_str() );
recentBinaryDirectoriesBrowser->Fl_Widget::hide();
+ m_CacheEntriesList.RemoveAll(); // remove data from other project
+ LoadCacheFromDiskToGUI();
}