Add an error message in LocalSettingsDialog::accept()

- If the settings file cannot be written, show the error.