ui: Fixed expanding file with errors showed all locations as errors

This commit is contained in:
Eberhard Graether
2016-03-11 13:52:24 +01:00
parent a8aaf6950f
commit 8c9b9355d5
6 changed files with 31 additions and 9 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ void QtCodeArea::annotateText()
const std::vector<Id>& activeIds = m_fileWidget->getActiveTokenIds();
const std::vector<Id>& focusIds = m_fileWidget->getFocusedTokenIds();
bool isError = m_fileWidget->getErrorMessages().size() > 0;
bool isError = m_fileWidget->hasErrors();
bool needsUpdate = false;
for (Annotation& annotation: m_annotations)