This commit is contained in:
parent
00d8d6b1e9
commit
7239a028fe
@ -1261,7 +1261,8 @@ namespace VEPROMS
|
|||||||
private void tv_WordSectionDeleted(object sender, WordSectionEventArgs args)
|
private void tv_WordSectionDeleted(object sender, WordSectionEventArgs args)
|
||||||
{
|
{
|
||||||
// is it a library document - if so and libdoc panel is visible, update lists on panel.
|
// is it a library document - if so and libdoc panel is visible, update lists on panel.
|
||||||
if ((!args.MySectionInfo.IsStepSection) && ((args.MySectionInfo.MyContent.MyEntry.MyDocument.LibTitle ?? "") != "") && (toolsPanel.Expanded))
|
// entry is null if it's a table of contents.
|
||||||
|
if ((!args.MySectionInfo.IsStepSection) && (args.MySectionInfo.MyContent.MyEntry != null) && ((args.MySectionInfo.MyContent.MyEntry.MyDocument.LibTitle ?? "") != "") && (toolsPanel.Expanded))
|
||||||
{
|
{
|
||||||
if (toolsTabs.SelectedTab == tabItemLibDocs)
|
if (toolsTabs.SelectedTab == tabItemLibDocs)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user