PKGBUILDs/community/texstudio/fs56433.patch
2017-12-02 00:44:33 +00:00

24 lines
1.6 KiB
Diff

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);
diff -r 184eb474c083 grammarcheck.cpp
--- a/grammarcheck.cpp Sun Nov 26 21:13:19 2017 +0100
+++ b/grammarcheck.cpp Fri Dec 01 21:07:57 2017 +0100
@@ -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()));