Fix stack overflow due to signal infinite loop

This commit is contained in:
Sandro Mani
2015-11-17 18:01:56 +01:00
parent 8c5dfbb977
commit 29800310c7

View File

@@ -132,7 +132,9 @@ void EditDialog::editTextChanged()
{
if(ui->editorText->hasFocus())
{
hexEdit->blockSignals(true);
hexEdit->setData(ui->editorText->toPlainText().toUtf8());
hexEdit->blockSignals(false);
checkDataType();
}
}
@@ -140,7 +142,9 @@ void EditDialog::editTextChanged()
void EditDialog::hexDataChanged()
{
// Update the text editor accordingly
ui->editorText->blockSignals(true);
ui->editorText->setPlainText(QString::fromUtf8(hexEdit->data().constData(), hexEdit->data().size()));
ui->editorText->blockSignals(false);
}
void EditDialog::checkDataType()