diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-31 19:48:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-31 19:48:35 (GMT) |
commit | 01b980591bd26c30691530cdc848b4591e052c04 (patch) | |
tree | c9542d012753769f132b84a81b1dd0020ffe7e50 /Source | |
parent | 6b37e97caee06e5a2b80798cd2c1cbe5e9c7569b (diff) | |
download | CMake-01b980591bd26c30691530cdc848b4591e052c04.zip CMake-01b980591bd26c30691530cdc848b4591e052c04.tar.gz CMake-01b980591bd26c30691530cdc848b4591e052c04.tar.bz2 |
BUG: fix edit of directories
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 10 | ||||
-rw-r--r-- | Source/cmake.cxx | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 101ce17..0505e50 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -100,10 +100,10 @@ BEGIN_MESSAGE_MAP(CMakeSetupDialog, CDialog) ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BuildProjects, OnBuildProjects) - ON_CBN_EDITCHANGE(IDC_WhereBuild, OnChangeWhereBuild) ON_BN_CLICKED(IDC_BUTTON2, OnBrowseWhereSource) ON_BN_CLICKED(IDC_BUTTON3, OnBrowseWhereBuild) - ON_CBN_SELENDOK(IDC_WhereBuild, OnSelendokWhereBuild) + ON_CBN_EDITCHANGE(IDC_WhereBuild, OnChangeWhereBuild) + ON_CBN_SELCHANGE(IDC_WhereBuild, OnSelendokWhereBuild) ON_CBN_SELENDOK(IDC_WhereSource, OnSelendokWhereSource) ON_CBN_EDITCHANGE(IDC_WhereSource, OnChangeWhereSource) //}}AFX_MSG_MAP @@ -147,7 +147,8 @@ BOOL CMakeSetupDialog::OnInitDialog() // Set the version number char tmp[1024]; sprintf(tmp,"Version %s", cmMakefile::GetVersion()); - SetDlgItemText(IDC_CMAKE_VERSION, tmp); + SetDlgItemText(IDC_CMAKE_VERSION, tmp); + this->UpdateData(FALSE); return TRUE; // return TRUE unless you set the focus to a control } @@ -550,13 +551,12 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager() break; } } - this->UpdateData(FALSE); } // copy from the list box to the cache manager void CMakeSetupDialog::FillCacheManagerFromCacheGUI() { - cmCacheManager::GetInstance()->GetCacheMap(); + cmCacheManager::GetInstance()->GetCacheMap(); std::set<CPropertyItem*> items = m_CacheEntriesList.GetItems(); for(std::set<CPropertyItem*>::iterator i = items.begin(); i != items.end(); ++i) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 66df7b2..c24051b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -171,7 +171,9 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args) if (!cmSystemTools::FileIsDirectory(modules.c_str())) { // couldn't find modules - cmSystemTools::Error("Could not find CMAKE_ROOT !!!"); + cmSystemTools::Error("Could not find CMAKE_ROOT !!!\n", + "Modules directory not in directory:\n", + modules.c_str()); return; } } |