From 199975bdd043f2096c2522d4e701a60002c27396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Tue, 3 Dec 2024 08:05:16 +0100 Subject: [PATCH] fix: clean device disconnection when loading setup files --- Software/PC_Application/LibreVNA-GUI/appwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Software/PC_Application/LibreVNA-GUI/appwindow.cpp b/Software/PC_Application/LibreVNA-GUI/appwindow.cpp index 5527d07..b28a07c 100644 --- a/Software/PC_Application/LibreVNA-GUI/appwindow.cpp +++ b/Software/PC_Application/LibreVNA-GUI/appwindow.cpp @@ -1418,8 +1418,7 @@ void AppWindow::LoadSetup(nlohmann::json j) QString serial = QString(); if(device) { serial = device->getSerial(); - device->disconnectDevice(); - device = nullptr; + DisconnectDevice(); } modeHandler->closeModes();