summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-07-14 20:09:15 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-07-14 20:09:15 (GMT)
commitcb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7 (patch)
tree88da4a0c5706db18ac55602fc9651f1ae06e1ace /Source/MFCDialog
parentb993cd7fba70747a52510eb9cd81e25b1202915d (diff)
downloadCMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.zip
CMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.tar.gz
CMake-cb85eeaa112bdd85ee7495fbfe91402c8c9c8fa7.tar.bz2
Fix browse button to use correct windows style initial directory
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp4
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();