- 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:
parent
ef1fbf3d8b
commit
a4ef5c6987
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue