Просмотр исходного кода

FIX: If current selection was "NOTFOUND", then selecting the browser
would crash since a "/" could not be found in the current selection.

Jim Miller 24 лет назад
Родитель
Сommit
386f4391b2
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      Source/MFCDialog/PropertyList.cpp

+ 4 - 0
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('\\');