summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpplocatordata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cpplocatordata.cpp')
-rw-r--r--src/plugins/cpptools/cpplocatordata.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpplocatordata.cpp b/src/plugins/cpptools/cpplocatordata.cpp
index eea0ec55f9..3ca5374dbf 100644
--- a/src/plugins/cpptools/cpplocatordata.cpp
+++ b/src/plugins/cpptools/cpplocatordata.cpp
@@ -54,8 +54,7 @@ void CppLocatorData::onDocumentUpdated(const CPlusPlus::Document::Ptr &document)
int i = 0, ei = m_pendingDocuments.size();
for (; i < ei; ++i) {
const CPlusPlus::Document::Ptr &doc = m_pendingDocuments.at(i);
- if (doc->fileName() == document->fileName()
- && doc->revision() < document->revision()) {
+ if (doc->fileName() == document->fileName() && doc->revision() <= document->revision()) {
m_pendingDocuments[i] = document;
break;
}