forked from qt-creator/qt-creator
CppEditorOutline: Fix warning
Change-Id: I7b3d212fb2b8c8a2b9f6af9a5445ac48e6e51b9c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -164,8 +164,7 @@ void CppEditorOutline::updateIndex()
|
|||||||
|
|
||||||
void CppEditorOutline::updateIndexNow()
|
void CppEditorOutline::updateIndexNow()
|
||||||
{
|
{
|
||||||
const auto revision = static_cast<unsigned>(m_editorWidget->document()->revision());
|
if (m_model->editorRevision() != m_editorWidget->document()->revision()) {
|
||||||
if (m_model->editorRevision() != revision) {
|
|
||||||
m_updateIndexTimer->start();
|
m_updateIndexTimer->start();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user