mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
Fix: prevent crash when closing preferences without connected device
This commit is contained in:
parent
392b06f0eb
commit
3afbf42791
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue