From 386f4391b251360079a99a1bd2ba7fca58c83640 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 1 May 2002 22:03:23 -0400 Subject: FIX: If current selection was "NOTFOUND", then selecting the browser would crash since a "/" could not be found in the current selection. --- Source/MFCDialog/PropertyList.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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('\\'); -- cgit v0.12