summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorJim Miller <millerjv@crd.ge.com>2002-05-02 02:03:23 (GMT)
committerJim Miller <millerjv@crd.ge.com>2002-05-02 02:03:23 (GMT)
commit386f4391b251360079a99a1bd2ba7fca58c83640 (patch)
treeb01537c88a2f1ee7255ee3de88e732aa633cdf47 /Source/MFCDialog
parent099436db26c0a46b3df4b5aaf51e8777e35bfe06 (diff)
downloadCMake-386f4391b251360079a99a1bd2ba7fca58c83640.zip
CMake-386f4391b251360079a99a1bd2ba7fca58c83640.tar.gz
CMake-386f4391b251360079a99a1bd2ba7fca58c83640.tar.bz2
FIX: If current selection was "NOTFOUND", then selecting the browser
would crash since a "/" could not be found in the current selection.
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/PropertyList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp
index 7aa9df3..4887fa4 100644
--- a/Source/MFCDialog/PropertyList.cpp
+++ b/Source/MFCDialog/PropertyList.cpp
@@ -433,6 +433,10 @@ void CPropertyList::OnButton()
Filter);
CString initialDir;
CString currPath = pItem->m_curValue;
+ if (currPath == "NOTFOUND")
+ {
+ currPath = "";
+ }
if (currPath.GetLength() > 0)
{
int endSlash = currPath.ReverseFind('\\');