diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-07-21 23:12:10 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-07-21 23:12:10 (GMT) |
commit | 353050fb4efaef81d85c4df917ad4c7131345aaf (patch) | |
tree | 1c983709e41044ef7445d942e27df80e54d42c2b | |
parent | 4a792ac1a4c751c17891197703df27f30a83bb2a (diff) | |
download | CMake-353050fb4efaef81d85c4df917ad4c7131345aaf.zip CMake-353050fb4efaef81d85c4df917ad4c7131345aaf.tar.gz CMake-353050fb4efaef81d85c4df917ad4c7131345aaf.tar.bz2 |
ENH: add Drag & Drop (directory, file, or CMakeCache), support for Shortcut too
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 3b049a6..2937e3d 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -1184,6 +1184,7 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* buffer) { std::string name = cmSystemTools::GetFilenameName(file); std::string path = cmSystemTools::GetFilenamePath(file); + path = cmSystemTools::ConvertToOutputPath(path.c_str()); this->m_WhereBuild = path.c_str(); cmCacheManager *cache = cmCacheManager::GetInstance(); @@ -1191,13 +1192,9 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* buffer) cache->LoadCache(path.c_str()) && cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")) { - this->m_WhereSource = - cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")->m_Value.c_str(); - } - else - { - this->m_WhereSource = path.c_str(); + path = cmSystemTools::ConvertToOutputPath(cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")->m_Value.c_str()); } + this->m_WhereSource = path.c_str(); } } |