mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-17 17:58:23 -05:00
Merge pull request #444 from manisandro/signal_loop
Fix stack overflow due to signal infinite loop
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user