bugfix: PathPreference dialog retains state on rotation.

Pulled my hair out on this one, and it's still kind of a hack...
Unbelievably difficult to do the simplest of things sometimes.