OK button does no longer discard a settings dialog if settings are not valid.