2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 28 Jul 2009 12:02:09 +0000 (12:02 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 28 Jul 2009 12:02:09 +0000 (12:02 -0000)
commit92101ff50655f37af97a03a25cf61a8d2b459fff
tree7b08b3c21c2f509302317a2e5fcf1b56c31ebbc4
parentc5a93694dd28c70bf607efe314effeded9e7673a
2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNodeCollection.cs: When removing the selected node, set the
SelectedNode value of TreeView to null if there aren't more nodes left -
this is better than to clear the selected node in Clear, since we need
to handle the situation in the Remove methods as well.
Fixes #525002.

svn path=/trunk/mcs/; revision=138824
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs