Explorar el Código

Invalid assertion

Source commit: c2dc0d4c9ea0432ae7b469c22b6b792f71f3e026
Martin Prikryl hace 4 años
padre
commit
d98b72806c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      source/components/UnixDriveView.cpp

+ 2 - 2
source/components/UnixDriveView.cpp

@@ -910,9 +910,9 @@ TObject * TCustomUnixDriveView::SaveState()
   TTreeNode * Node = Items->GetFirstNode();
   while (Node != NULL)
   {
-    if (Node->Expanded)
+    // Node->HasChildren would be false in extreme cases only (like while closing the window)
+    if (Node->Expanded && Node->HasChildren)
     {
-      DebugAssert(Node->HasChildren);
       ExpandedNodes->Add(NodePathName(Node));
     }
     Node = Node->GetNext();