Fix delete intervals

If multiple intervals are selected then the delete interval
menu item should delete all the ones that are highlighted.

Fixes #442