PreferenceDialog implemented (fixes #460)