diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-07-14 20:09:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-07-14 20:09:15 (GMT) |
commit | cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7 (patch) | |
tree | 88da4a0c5706db18ac55602fc9651f1ae06e1ace | |
parent | b993cd7fba70747a52510eb9cd81e25b1202915d (diff) | |
download | CMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.zip CMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.tar.gz CMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.tar.bz2 |
Fix browse button to use correct windows style initial directory
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index c8b8612..2de0e9f 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -429,7 +429,9 @@ HCURSOR CMakeSetupDialog::OnQueryDragIcon() // Browse button 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) { result = dlg.GetPathName(); |