Update PreferencesDialog.cpp

[ci skip]