| 27 | } |
| 28 | |
| 29 | bool SettingsValidator::correct(Settings &settings, const CommonModels &models) |
| 30 | { |
| 31 | auto changed = false; |
| 32 | |
| 33 | if (settings.doTranslation && settings.translators.isEmpty() && |
| 34 | !models.translators().isEmpty()) { |
| 35 | settings.translators = models.translators(); |
| 36 | changed = true; |
| 37 | } |
| 38 | return changed; |
| 39 | } |
| 40 | |
| 41 | QString SettingsValidator::toString(Error error) const |
| 42 | { |
no outgoing calls
no test coverage detected