Merge pull request #444 from manisandro/signal_loop

Fix stack overflow due to signal infinite loop
This commit is contained in:
Peinthor Rene
2015-11-18 08:48:52 +01:00
+4
View File
@@ -148,7 +148,9 @@ void EditDialog::editTextChanged()
{
if(ui->editorText->hasFocus())
{
hexEdit->blockSignals(true);
hexEdit->setData(ui->editorText->toPlainText().toUtf8());
hexEdit->blockSignals(false);
checkDataType();
}
}
@@ -156,7 +158,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()