ENH: add Drag & Drop (directory, file, or CMakeCache), support for Shortcut too

This commit is contained in:
Sebastien Barre 2002-07-21 19:12:10 -04:00
parent 4a792ac1a4
commit 353050fb4e
1 changed files with 3 additions and 6 deletions

View File

@ -1184,6 +1184,7 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* buffer)
{ {
std::string name = cmSystemTools::GetFilenameName(file); std::string name = cmSystemTools::GetFilenameName(file);
std::string path = cmSystemTools::GetFilenamePath(file); std::string path = cmSystemTools::GetFilenamePath(file);
path = cmSystemTools::ConvertToOutputPath(path.c_str());
this->m_WhereBuild = path.c_str(); this->m_WhereBuild = path.c_str();
cmCacheManager *cache = cmCacheManager::GetInstance(); cmCacheManager *cache = cmCacheManager::GetInstance();
@ -1191,13 +1192,9 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* buffer)
cache->LoadCache(path.c_str()) && cache->LoadCache(path.c_str()) &&
cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")) cache->GetCacheEntry("CMAKE_HOME_DIRECTORY"))
{ {
this->m_WhereSource = path = cmSystemTools::ConvertToOutputPath(cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")->m_Value.c_str());
cache->GetCacheEntry("CMAKE_HOME_DIRECTORY")->m_Value.c_str();
}
else
{
this->m_WhereSource = path.c_str();
} }
this->m_WhereSource = path.c_str();
} }
} }