Remove preference store listener on deactivation

The listener would try to redraw a disposed widget on preference changes, even after
the editor was closed.