fix segfault in console code
This commit is contained in:
parent
8f0a810539
commit
7b6e8fc473
@ -282,6 +282,7 @@ void DiscordPage::javaScriptConsoleMessage(
|
|||||||
ansi += "\033[" + cssAnsiColorMap[color] + "m";
|
ansi += "\033[" + cssAnsiColorMap[color] + "m";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (endOfStyles < lines.length())
|
||||||
qDebug(discordLog) << (ansi + lines[0].trimmed() + "\033[0m " +
|
qDebug(discordLog) << (ansi + lines[0].trimmed() + "\033[0m " +
|
||||||
lines[endOfStyles].trimmed())
|
lines[endOfStyles].trimmed())
|
||||||
.toUtf8()
|
.toUtf8()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user