Spinbox: don't emit valueChanged when the value didn't actually changed.

Also  fixed a bug in the project views count