Commit fbcc9307 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to select "languagetool" language.

CCBUG: 406680
parent 05e83a83
......@@ -52,7 +52,7 @@ void LanguageToolResultWidget::checkGrammar()
job->setUrl(LanguageToolManager::self()->languageToolCheckPath());
job->setNetworkAccessManager(LanguageToolManager::self()->networkAccessManager());
job->setText(mResult->toPlainText());
job->setLanguage(LanguageToolManager::self()->language());
job->setLanguage(/*LanguageToolManager::self()->language()*/mLanguageToolComboBox->language());
connect(job, &LanguageToolResultJob::finished, this, &LanguageToolResultWidget::slotCheckGrammarFinished);
connect(job, &LanguageToolResultJob::error, this, &LanguageToolResultWidget::slotError);
job->start();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment