Fix formatting of debug messages to log view.
Ticket #2513 (GUI: Garbage printed to log after missing include warning) The linenumber was not properly converted to the QString so there were garbage printed to the log.
This commit is contained in:
parent
001d382614
commit
50dba88077
|
@ -43,9 +43,11 @@ ErrorItem::ErrorItem(const ErrorLine &line)
|
||||||
QString ErrorItem::ToString() const
|
QString ErrorItem::ToString() const
|
||||||
{
|
{
|
||||||
QString str = file + " - " + id + " - " + severity +"\n";
|
QString str = file + " - " + id + " - " + severity +"\n";
|
||||||
str += " " + summary;
|
str += summary + "\n";
|
||||||
str += "\n" + message;
|
str += message + "\n";
|
||||||
for (int i = 0; i < files.size(); i++)
|
for (int i = 0; i < files.size(); i++)
|
||||||
str += " " + files[i] + ": " + lines[i] + "\n";
|
{
|
||||||
|
str += " " + files[i] + ": " + QString::number(lines[i]) + "\n";
|
||||||
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue