BUG#724: Preserving current working directory during file selection.

This commit is contained in:
Brad King 2004-03-29 13:15:23 -05:00
parent 99feab3528
commit d1185c5910

View File

@ -450,6 +450,9 @@ void CPropertyList::OnButton()
{
CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(m_curSel);
// The dialogs might change the working directory. Save it.
std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
//display the appropriate common dialog depending on what type
//of chooser is associated with the property
@ -511,6 +514,8 @@ void CPropertyList::OnButton()
InvalidateList();
}
}
cmSystemTools::ChangeDirectory(cwd.c_str());
}
void CPropertyList::OnLButtonUp(UINT nFlags, CPoint point)