Original: This almost ruins all hope of happiness; but fortunately, Virginia reveals to him that she loves somebody else (or actually, to be more exact, the "figure" of Captain Sunderland - for she has never actually met him).
Simplified: But later, Virginia shows him that she loves somebody else.