summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-06 22:07:18 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-06 22:07:18 (GMT)
commit683c54b787a1ba61691587bd27a44c888f47f3ea (patch)
treee1432302a6db268e9483e3e9c905a03c34c79c14 /Source/CursesDialog
parent82b3ed83d4cef6105afe4bee645e61991836509e (diff)
downloadCMake-683c54b787a1ba61691587bd27a44c888f47f3ea.zip
CMake-683c54b787a1ba61691587bd27a44c888f47f3ea.tar.gz
CMake-683c54b787a1ba61691587bd27a44c888f47f3ea.tar.bz2
Added support for ~.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index fb6e7bd..7270161 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -518,8 +518,17 @@ void cmCursesMainForm::FillCacheManagerFromUI()
if (entry)
{
tmpString = (*m_Entries)[i]->m_Entry->GetValue();
- // Remove trailing spaces
- entry->m_Value = tmpString.substr(0,tmpString.find_last_not_of(" ")+1);
+
+ // Remove trailing spaces, convert path to unix slashes
+ string tmpSubString =
+ tmpString.substr(0,tmpString.find_last_not_of(" ")+1);
+ if ( entry->m_Type == cmCacheManager::PATH ||
+ entry->m_Type == cmCacheManager::FILEPATH )
+ {
+ cmSystemTools::ConvertToUnixSlashes(tmpSubString);
+ }
+ entry->m_Value = tmpSubString;
+
}
}
}