void OnNotebooksFocusIn (object sender, EventArgs args) { // To make sure DeleteNoteAction gets disabled // when we're not in the notes list (bgo647472) tree.Selection.UnselectAll (); }