mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
rwviewer: keep unconvertible characters in the string as they are
This commit is contained in:
parent
f0c0bd33ef
commit
f85f6e3391
@ -156,10 +156,6 @@ void TextViewer::onGameStringChange(const GameString &gameString) {
|
|||||||
if (hexLineEdit->text().compare(newHexText)) {
|
if (hexLineEdit->text().compare(newHexText)) {
|
||||||
hexLineEdit->setText(newHexText);
|
hexLineEdit->setText(newHexText);
|
||||||
}
|
}
|
||||||
auto newText = QString::fromStdString(GameStringUtil::toString(gameString, currentFont));
|
|
||||||
if (textEdit->toPlainText().compare(newText)) {
|
|
||||||
textEdit->setText(newText);
|
|
||||||
}
|
|
||||||
|
|
||||||
updateRender();
|
updateRender();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user