Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
LyonJack committed Jul 3, 2020
1 parent 1c1f266 commit 981370f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
{
foreach (var item in e.OldItems)
{
if (item is LayoutContent layoutContent)
if (item is LayoutContent layoutContent && layoutContent.TabItem != null)
{
layoutContent.TabItem.Model = null;
layoutContent.TabItem.ContextMenu = null;
Expand Down

0 comments on commit 981370f

Please sign in to comment.