BUG#724: Preserving current working directory during file selection.
This commit is contained in:
parent
99feab3528
commit
d1185c5910
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user