Dont emit the "selection-changed" signal unless the selection has really changed.