edit-dialog: update sources when their readonly state changes

This fixes the annoying all-insensitive-menu bug.