Complex sentence: The two lived in Graz until her early death in 1854, when Toman moved to Radovljica, where he worked as a lawyer.
Split into simpler sentences: The two lived in Graz until her early death in 1854. After his wife's death he moved to Radovljica, where he worked as a lawyer.