- fix: "check when open/save" and "check when caret line changed" in Options Dialog / Editor / Syntax Check don't work

This commit is contained in:
Roy Qu 2022-11-07 17:03:46 +08:00
parent ef1fbf3d8b
commit a4ef5c6987
1 changed files with 6 additions and 3 deletions

View File

@ -284,6 +284,7 @@ bool Editor::save(bool force, bool doReparse) {
if (doReparse && isVisible()) {
reparse(false);
if (pSettings->editor().syntaxCheckWhenSave())
checkSyntaxInBack();
reparseTodo();
}
@ -396,6 +397,7 @@ bool Editor::saveAs(const QString &name, bool fromProject){
reparse(false);
if (pSettings->editor().syntaxCheckWhenSave())
checkSyntaxInBack();
reparseTodo();
@ -1579,6 +1581,7 @@ void Editor::onStatusChanged(QSynedit::StatusChanges changes)
mCurrentLineModified = false;
if (!changes.testFlag(QSynedit::StatusChange::scOpenFile)) {
reparse(false);
if (pSettings->editor().syntaxCheckWhenLineChanged())
checkSyntaxInBack();
reparseTodo();
}