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
+2 -2
View File
@@ -170,7 +170,7 @@ void QtCodeSnippet::clickedTitle()
{
if (m_titleId > 0)
{
MessageShowScope(m_titleId).dispatch();
MessageShowScope(m_titleId, dynamic_cast<QtCodeFile*>(parent())->hasErrors()).dispatch();
}
else
{
@@ -182,7 +182,7 @@ void QtCodeSnippet::clickedFooter()
{
if (m_footerId > 0)
{
MessageShowScope(m_footerId).dispatch();
MessageShowScope(m_footerId, dynamic_cast<QtCodeFile*>(parent())->hasErrors()).dispatch();
}
}