mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-09 08:23:41 +00:00
Minor pull-request adjustments
- Restore active mode after amplitude calibration - Keep order of modes as before (must users are probably used to that order by now) - Use correct parent for name popup when creating new modes
This commit is contained in:
parent
2a4850caf6
commit
d516d1ae41
5 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ AmplitudeCalDialog::AmplitudeCalDialog(Device *dev, ModeHandler *handler, QWidge
|
|||
model(this),
|
||||
mode(CalibrationMode::BothPorts)
|
||||
{
|
||||
auto activeMode = modeHandler->getActiveMode();
|
||||
activeMode = modeHandler->getActiveMode();
|
||||
modeHandler->deactivate(activeMode);
|
||||
dev->SetIdle();
|
||||
ui->setupUi(this);
|
||||
|
|
@ -138,7 +138,6 @@ AmplitudeCalDialog::AmplitudeCalDialog(Device *dev, ModeHandler *handler, QWidge
|
|||
AmplitudeCalDialog::~AmplitudeCalDialog()
|
||||
{
|
||||
delete ui;
|
||||
auto activeMode = modeHandler->getActiveMode();
|
||||
modeHandler->activate(activeMode);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue