Commit a53159fc authored by Simon Depiets's avatar Simon Depiets
Browse files

Do not launch LT on empty strings

parent a237942d
......@@ -1169,6 +1169,8 @@ void insertContent(QTextCursor& cursor, const CatalogString& catStr, const Catal
}
void TranslationUnitTextEdit::launchLanguageTool() {
if (toPlainText().length() == 0)
return;
LanguageToolResultJob *job = new LanguageToolResultJob(this);
job->setUrl(LanguageToolManager::self()->languageToolCheckPath());
job->setNetworkAccessManager(LanguageToolManager::self()->networkAccessManager());
......
Markdown is supported
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