SessionTreeWidget: block item reset while searching views

Fixes #23: Activity counter in windows should not reset while the
window switch dialog is open