BUG: PATH options should not remove the file part of the path...
This commit is contained in:
parent
6948617497
commit
72e8b44793
|
@ -446,17 +446,8 @@ void CPropertyList::OnButton()
|
||||||
}
|
}
|
||||||
else if (pItem->m_nItemType == CPropertyList::PATH)
|
else if (pItem->m_nItemType == CPropertyList::PATH)
|
||||||
{
|
{
|
||||||
CString initialDir;
|
CString initialDir = pItem->m_curValue;
|
||||||
CString currPath = pItem->m_curValue;
|
// convert back to windos style path
|
||||||
if (currPath.GetLength() > 0)
|
|
||||||
{
|
|
||||||
int endSlash = currPath.ReverseFind('\\');
|
|
||||||
if(endSlash == -1)
|
|
||||||
{
|
|
||||||
endSlash = currPath.ReverseFind('/');
|
|
||||||
}
|
|
||||||
initialDir = currPath.Left(endSlash);
|
|
||||||
}
|
|
||||||
initialDir.Replace("/", "\\");
|
initialDir.Replace("/", "\\");
|
||||||
CString title = "Setting Cache Value: ";
|
CString title = "Setting Cache Value: ";
|
||||||
title += pItem->m_propName;
|
title += pItem->m_propName;
|
||||||
|
|
Loading…
Reference in New Issue