summaryrefslogtreecommitdiffstats
path: root/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@kitware.com>2001-06-21 16:43:52 (GMT)
committerLuis Ibanez <luis.ibanez@kitware.com>2001-06-21 16:43:52 (GMT)
commit796fc4c4959ba18890bdaf01f9891c6ce4bc8a64 (patch)
tree2ed063a849db737a5be023dc69a0d2c3b927ca51 /Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
parent96545b1d4933fe3e989d5d6830f56c90f96dea13 (diff)
downloadCMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.zip
CMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.tar.gz
CMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.tar.bz2
ENH: Update the cacheManager from the GUI after each callback.
Only load the cache from disk if the binary path has changed.
Diffstat (limited to 'Source/FLTKDialog/CMakeSetupGUIImplementation.cxx')
-rw-r--r--Source/FLTKDialog/CMakeSetupGUIImplementation.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
index bba16ab..7f1a20f 100644
--- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
+++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
@@ -230,12 +230,15 @@ CMakeSetupGUIImplementation
if( m_WhereBuild != expandedAbsolutePath )
{
- m_BuildPathChanged = true;
- m_WhereBuild = expandedAbsolutePath;
+ m_BuildPathChanged = true;
+ m_WhereBuild = expandedAbsolutePath;
+ LoadCacheFromDiskToGUI();
+ }
+ else
+ {
+ m_BuildPathChanged = false;
}
- LoadCacheFromDiskToGUI();
-
return true;
}