mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
Merge pull request #7265 from spycrab/qt_fix_html_log
Qt/LogWidget: Fix messages not being escaped properly
This commit is contained in:
commit
f184718d1b
@ -210,10 +210,11 @@ void LogWidget::Log(LogTypes::LOG_LEVELS level, const char* text)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log_queue.push(QStringLiteral("%1 <font color='%2'>%3</font>")
|
m_log_queue.push(
|
||||||
|
QStringLiteral("%1 <font color='%2'>%3</font>")
|
||||||
.arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)),
|
.arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)),
|
||||||
QString::fromStdString(color),
|
QString::fromStdString(color),
|
||||||
QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH))));
|
QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH)).toHtmlEscaped()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogWidget::closeEvent(QCloseEvent*)
|
void LogWidget::closeEvent(QCloseEvent*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user