fix issue #55

Display a warning when the fitting tool button is clicked
but there is no SED to fit (or it is empty).

Similarly, remove the SED when a segment is removed so
to leave the SED empty.