2017-12-02 00:44:28 +00:00
|
|
|
diff -r 184eb474c083 configmanager.cpp
|
|
|
|
--- a/configmanager.cpp Sun Nov 26 21:13:19 2017 +0100
|
|
|
|
+++ b/configmanager.cpp Fri Dec 01 21:07:57 2017 +0100
|
|
|
|
@@ -603,7 +603,7 @@
|
|
|
|
#else
|
|
|
|
registerOption("Grammar/Language Tool URL", &grammarCheckerConfig->languageToolURL, "http://localhost:8081/", &pseudoDialog->lineEditGrammarLTUrl);
|
|
|
|
#endif
|
|
|
|
- registerOption("Grammar/Language Tool Path", &grammarCheckerConfig->languageToolPath, "", &pseudoDialog->lineEditGrammarLTPath);
|
|
|
|
+ registerOption("Grammar/Language Tool Path", &grammarCheckerConfig->languageToolPath, "/usr/share/languagetool:/usr/share/java/languagetool/*", &pseudoDialog->lineEditGrammarLTPath);
|
|
|
|
registerOption("Grammar/Language Tool Arguments", &grammarCheckerConfig->languageToolArguments, "org.languagetool.server.HTTPServer -p 8081", &pseudoDialog->lineEditGrammarLTArguments);
|
|
|
|
registerOption("Grammar/Language Tool Java Path", &grammarCheckerConfig->languageToolJavaPath, "java", &pseudoDialog->lineEditGrammarLTJava);
|
|
|
|
registerOption("Grammar/Language Tool Autorun", &grammarCheckerConfig->languageToolAutorun, true, &pseudoDialog->checkBoxGrammarLTAutorun);
|
2017-12-01 14:46:17 +00:00
|
|
|
diff -r 184eb474c083 grammarcheck.cpp
|
|
|
|
--- a/grammarcheck.cpp Sun Nov 26 21:13:19 2017 +0100
|
2017-12-02 00:44:28 +00:00
|
|
|
+++ b/grammarcheck.cpp Fri Dec 01 21:07:57 2017 +0100
|
2017-12-01 14:46:17 +00:00
|
|
|
@@ -898,7 +898,7 @@
|
|
|
|
}
|
|
|
|
triedToStart = true;
|
|
|
|
startTime = 0;
|
|
|
|
- if (ltPath == "" || !QFileInfo(ltPath).exists()) return;
|
|
|
|
+ if (ltPath == "") return;
|
|
|
|
javaProcess = new QProcess();
|
|
|
|
connect(javaProcess, SIGNAL(finished(int)), javaProcess, SLOT(deleteLater()));
|
|
|
|
connect(this, SIGNAL(destroyed()), javaProcess, SLOT(deleteLater()));
|