1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

rwviewer: keep unconvertible characters in the string as they are

This commit is contained in:
Anonymous Maarten 2018-08-07 12:34:29 +02:00
parent f0c0bd33ef
commit f85f6e3391

View File

@ -156,10 +156,6 @@ void TextViewer::onGameStringChange(const GameString &gameString) {
if (hexLineEdit->text().compare(newHexText)) {
hexLineEdit->setText(newHexText);
}
auto newText = QString::fromStdString(GameStringUtil::toString(gameString, currentFont));
if (textEdit->toPlainText().compare(newText)) {
textEdit->setText(newText);
}
updateRender();
}