mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
EditDialog: Fix text editor when NULL chars are typed in hex editor
When using the hex editor widget of the Edit Dialog to insert a NULL character and then changing to the text editor without saving and reopening the window first lead to the text being truncated at the NULL character.
This commit is contained in:
@@ -139,7 +139,7 @@ void EditDialog::editTextChanged()
|
||||
void EditDialog::hexDataChanged()
|
||||
{
|
||||
// Update the text editor accordingly
|
||||
ui->editorText->setPlainText(hexEdit->data());
|
||||
ui->editorText->setPlainText(QString::fromUtf8(hexEdit->data().constData(), hexEdit->data().size()));
|
||||
}
|
||||
|
||||
void EditDialog::checkDataType()
|
||||
|
||||
Reference in New Issue
Block a user