diff --git a/src/latexdocument.cpp b/src/latexdocument.cpp index 8b79871a01..d55eed925e 100644 --- a/src/latexdocument.cpp +++ b/src/latexdocument.cpp @@ -1210,11 +1210,8 @@ void LatexDocument::handleRescanDocuments(HandledData changedCommands){ reCheckSyntax(); } }while(loopAgain); - if(updateCompleter){ - emit updateCompleterCommands(); - } - // user commands changed - // update completer & syntax check + + // bib files changed // update bibitem checking and completer @@ -1228,6 +1225,12 @@ void LatexDocument::handleRescanDocuments(HandledData changedCommands){ if (elem->edView) elem->edView->updateCitationFormats(); } + updateCompleter=true; + } + // user commands or bibitems changed + // update completer & syntax check + if(updateCompleter){ + emit updateCompleterCommands(); } } /*!