forked from qt-creator/qt-creator
ClangCodeModel: Work around race condition when closing editors
The editor manager emits currentEditorChanged() before editorsClosed(), which throws off the clangbackend. Fix this by sending an extra DocumentVisibilityChangedMessage after the DocumentsClosedMessage. Fixes: QTCREATORBUG-25193 Change-Id: Ic02ae174a2912d79aeded44ced13d962b53526b1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -478,6 +478,7 @@ void BackendCommunicator::documentsClosed(const FileContainers &fileContainers)
|
||||
{
|
||||
const DocumentsClosedMessage message(fileContainers);
|
||||
m_sender->documentsClosed(message);
|
||||
documentVisibilityChanged(); // QTCREATORBUG-25193
|
||||
}
|
||||
|
||||
void BackendCommunicator::unsavedFilesUpdated(const FileContainers &fileContainers)
|
||||
|
||||
Reference in New Issue
Block a user