Various bugfixes, mostly eye diagram related

- Update eye diagram when settings are changed but data is static
- Keep trace on eye diagram visible when random other trace is deleted
- resolve references when duplicating a math trace
- use correct trace output domain in various checks throughout the code
This commit is contained in:
Jan Käberich 2025-02-14 14:03:09 +01:00
parent 50bde261af
commit ef8cdeccd7
7 changed files with 27 additions and 15 deletions

View file

@ -443,7 +443,7 @@ void TraceWidget::SetupSCPI()
for(int j=0;j<ports;j++) {
bool need_reflection = i==j;
auto t = traces[j+i*ports];
if(t->getDataType() != Trace::DataType::Frequency) {
if(t->outputType() != Trace::DataType::Frequency) {
// invalid domain
return SCPI::getResultName(SCPI::Result::Error);
}
@ -649,6 +649,10 @@ void TraceWidget::contextMenuEvent(QContextMenuEvent *event)
// force update of hash
duplicate->toHash(true);
model.addTrace(duplicate);
// resolve math sources
if(!duplicate->resolveMathSourceHashes()) {
qWarning() << "Failed to resolve all math source hashes for"<<duplicate;
}
});
ctxmenu->addAction(action_duplicate);
ctxmenu->exec(event->globalPos());