From 6a27d394447adc628014d75a146fd7a844a0f34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Thu, 28 Jul 2022 15:51:18 +0200 Subject: [PATCH] update contextmenu after editing smith chart settings --- Software/PC_Application/Traces/tracesmithchart.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Software/PC_Application/Traces/tracesmithchart.cpp b/Software/PC_Application/Traces/tracesmithchart.cpp index e690320..846e907 100644 --- a/Software/PC_Application/Traces/tracesmithchart.cpp +++ b/Software/PC_Application/Traces/tracesmithchart.cpp @@ -123,6 +123,7 @@ void TraceSmithChart::axisSetupDialog() connect(ui->buttonBox, &QDialogButtonBox::accepted, [=](){ limitToSpan = ui->displayModeFreq->currentIndex() == 1; limitToEdge = ui->displayModeImp->currentIndex() == 1; + updateContextMenu(); triggerReplot(); }); connect(ui->zoomFactor, &SIUnitEdit::valueChanged, [=](){ @@ -140,6 +141,8 @@ void TraceSmithChart::axisSetupDialog() checkIfStillSupported(t.first); } } + // depending on the preferences, the Z0 value may have been changed to match the active traces, + // overwrite again without causing an additional signal ui->impedance->setValueQuiet(Z0); }); connect(ui->lineTable, &QTableView::clicked, [=](const QModelIndex &index){ @@ -287,6 +290,7 @@ bool TraceSmithChart::configureForTrace(Trace *t) enableTrace(t.first, false); } } + updateContextMenu(); return true; } return false;