mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-10 02:30:23 +01:00
Fix: prevent crash when closing preferences without connected device
This commit is contained in:
parent
392b06f0eb
commit
3afbf42791
|
|
@ -227,7 +227,9 @@ AppWindow::AppWindow(QWidget *parent)
|
|||
// acquisition frequencies may have changed, update
|
||||
UpdateAcquisitionFrequencies();
|
||||
|
||||
active->initializeDevice();
|
||||
if(device) {
|
||||
active->initializeDevice();
|
||||
}
|
||||
});
|
||||
|
||||
connect(ui->actionAbout, &QAction::triggered, [=](){
|
||||
|
|
|
|||
Loading…
Reference in a new issue