Skip to content

Commit 0966466

Browse files
committed
validate math formula on text change
1 parent 3c7534a commit 0966466

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Software/PC_Application/LibreVNA-GUI/Traces/traceeditdialog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ TraceEditDialog::TraceEditDialog(Trace &t, QWidget *parent) :
147147

148148
// Math source configuration
149149
if(t.getModel()) {
150-
ui->lMathFormula->setText(t.getMathFormula());
151-
connect(ui->lMathFormula, &QLineEdit::editingFinished, [&](){
150+
connect(ui->lMathFormula, &QLineEdit::textChanged, [&](){
152151
t.setMathFormula(ui->lMathFormula->text());
153152
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(t.mathFormularValid());
154153
});

0 commit comments

Comments
 (0)