Fix browse button to use correct windows style initial directory
This commit is contained in:
parent
b993cd7fba
commit
cb85eeaa11
|
@ -429,7 +429,9 @@ HCURSOR CMakeSetupDialog::OnQueryDragIcon()
|
||||||
// Browse button
|
// Browse button
|
||||||
bool CMakeSetupDialog::Browse(CString &result, const char *title)
|
bool CMakeSetupDialog::Browse(CString &result, const char *title)
|
||||||
{
|
{
|
||||||
CPathDialog dlg("Select Path", title, result);
|
CString initialDir = result;
|
||||||
|
initialDir.Replace("/", "\\");
|
||||||
|
CPathDialog dlg("Select Path", title, initialDir);
|
||||||
if(dlg.DoModal()==IDOK)
|
if(dlg.DoModal()==IDOK)
|
||||||
{
|
{
|
||||||
result = dlg.GetPathName();
|
result = dlg.GetPathName();
|
||||||
|
|
Loading…
Reference in New Issue