Restore previously selected option when updating a drop-down list.

This patch fixes a bug in the editor. Steps to reproduce:

1) Create a new scene with two objects named A and B in it.
2) Select B
3) Set B's parent to A
4) Pan the view. As you pan you will notice that B's parent is reset to Scene.