mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
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:
parent
50bde261af
commit
ef8cdeccd7
7 changed files with 27 additions and 15 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue