summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-12-10 19:51:59 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-12-10 19:51:59 (GMT)
commit0b8dcaddd28276f7755e21df848f3eff8e277910 (patch)
tree61a6d4a8b9320941db7aa038a752912709d07d1a /Source/MFCDialog
parent7928df081777e591eff37136131d7025046ed98d (diff)
downloadCMake-0b8dcaddd28276f7755e21df848f3eff8e277910.zip
CMake-0b8dcaddd28276f7755e21df848f3eff8e277910.tar.gz
CMake-0b8dcaddd28276f7755e21df848f3eff8e277910.tar.bz2
FIX: drag&drop on CMake icon was not working anymore.
- the cmake instance had to be created before accessing the cache (doh) - the cache iterator was not queried properly (seems the API changed)
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 746597e..04dc86d 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -128,7 +128,10 @@ CMakeSetupDialog::CMakeSetupDialog(const CMakeCommandLineInfo& cmdInfo,
cmSystemTools::SetErrorCallback(MFCMessageCallback);
m_RegistryKey = "Software\\Kitware\\CMakeSetup\\Settings\\StartPath";
m_CacheEntriesList.m_CMakeSetupDialog = this;
-
+
+ m_CMakeInstance = new cmake;
+ m_CMakeInstance->SetProgressCallback(updateProgress, (void *)this);
+
//{{AFX_DATA_INIT(CMakeSetupDialog)
//}}AFX_DATA_INIT
@@ -164,9 +167,6 @@ CMakeSetupDialog::CMakeSetupDialog(const CMakeCommandLineInfo& cmdInfo,
m_oldCX = -1;
m_deltaXRemainder = 0;
- m_CMakeInstance = new cmake;
- m_CMakeInstance->SetProgressCallback(updateProgress, (void *)this);
-
}
CMakeSetupDialog::~CMakeSetupDialog()
@@ -1338,7 +1338,7 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* buffer)
path = ConvertToWindowsPath(path.c_str());
this->m_WhereBuild = path.c_str();
- path = ConvertToWindowsPath(it.GetName());
+ path = ConvertToWindowsPath(it.GetValue());
this->m_WhereSource = path.c_str();
}
else