Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 20e7f5c

Browse files
hpsadgrunwald
authored andcommitted
AvalonDock bug fix: incorrect document becomes active after deleting a project item from Solution Explorer
1 parent 9efaa02 commit 20e7f5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Libraries/AvalonDock/AvalonDock

src/Libraries/AvalonDock/AvalonDock/Pane.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected override void OnItemsChanged(System.Collections.Specialized.NotifyColl
113113
_lastSelectedContent = null;
114114

115115
if ((e.NewItems == null || e.NewItems.Count == 0) &&
116-
(e.OldItems != null && e.OldItems.Count > 0))
116+
(e.OldItems != null && e.OldItems.Count > 0 && e.OldItems.Contains(SelectedItem)))
117117
{
118118
if (_lastSelectedContent != null &&
119119
Items.Contains(_lastSelectedContent))

0 commit comments

Comments
 (0)