Enhanced: null checks and cache refreshes for new folders

This commit is contained in:
Kathy Ruffing 2016-05-09 11:34:09 +00:00
parent d4c0f2098d
commit cf41e4b8a2

View File

@ -1309,7 +1309,7 @@ namespace Volian.Controls.Library
bool retB = true;
E_AccStep? actable = 0;
StepData sd = ii.FormatStepData;
actable = sd.StepEditData.AcTable;
if (sd != null) actable = sd.StepEditData.AcTable;
if (actable == null) actable = 0;
return (ba == 0) ? !ii.IsRNOPart && (actable & E_AccStep.AddingPrev) > 0 :
@ -2238,6 +2238,8 @@ namespace Volian.Controls.Library
docversion.Save();
tn = new VETreeNode(_LastDocVersionInfo);
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
parentfolder.Reset_ChildFolders();
parentfolder.Reset_FolderDocVersions();
}
else
dvid = docversion.VersionID;
@ -3630,7 +3632,7 @@ namespace Volian.Controls.Library
public void AdjustTree(ItemInfo selectedItem)
{
// start at the top parent and walk down the nodes to find child
Console.WriteLine("VlnTreeview:AdjustTree");
if (selectedItem == null) return;
VETreeNode node = FindNodeAndExpand(selectedItem);
if (node != null)
{