|
|
|
@ -155,7 +155,8 @@ namespace ICSharpCode.TreeView |
|
|
|
// if we removed all selected nodes, then move the focus to the node
|
|
|
|
// if we removed all selected nodes, then move the focus to the node
|
|
|
|
// preceding the first of the old selected nodes
|
|
|
|
// preceding the first of the old selected nodes
|
|
|
|
SelectedIndex = Math.Max(0, e.OldStartingIndex - 1); |
|
|
|
SelectedIndex = Math.Max(0, e.OldStartingIndex - 1); |
|
|
|
FocusNode((SharpTreeNode)SelectedItem); |
|
|
|
if (SelectedIndex >= 0) |
|
|
|
|
|
|
|
FocusNode((SharpTreeNode)SelectedItem); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|