mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 15:33:51 +00:00
Fix import bug for through standard touchstone files
This commit is contained in:
parent
d022f944c5
commit
77dfabc67f
3 changed files with 2 additions and 364 deletions
|
|
@ -619,7 +619,7 @@ void Through::edit(std::function<void(void)> finishedCallback)
|
|||
|
||||
QObject::connect(ui->touchstoneImport, &TouchstoneImport::statusChanged, ui->updateFile, &QPushButton::setEnabled);
|
||||
|
||||
ui->touchstoneImport->setPorts(1);
|
||||
ui->touchstoneImport->setPorts(2);
|
||||
if(touchstone) {
|
||||
ui->measurement->setChecked(true);
|
||||
ui->touchstoneImport->setFile(touchstone->getFilename());
|
||||
|
|
@ -628,7 +628,7 @@ void Through::edit(std::function<void(void)> finishedCallback)
|
|||
}
|
||||
|
||||
QObject::connect(ui->updateFile, &QPushButton::clicked, [=](){
|
||||
setMeasurement(ui->touchstoneImport->getTouchstone(), ui->touchstoneImport->getPorts()[0]);
|
||||
setMeasurement(ui->touchstoneImport->getTouchstone(), ui->touchstoneImport->getPorts()[0], ui->touchstoneImport->getPorts()[1]);
|
||||
updateMeasurementLabel();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue