From 5ac208119584697543e6f04ec384b2d4bc60a7f9 Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 10 Oct 2024 15:03:24 +0100 Subject: [PATCH] DeviceGUI::closeEvent - Don't automatically delete the GUI, as MainWindow::RemoveDeviceSetFSM::removeUI will do it --- sdrgui/device/devicegui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/device/devicegui.cpp b/sdrgui/device/devicegui.cpp index a804812fb..1453ce872 100644 --- a/sdrgui/device/devicegui.cpp +++ b/sdrgui/device/devicegui.cpp @@ -283,7 +283,7 @@ void DeviceGUI::closeEvent(QCloseEvent *event) { qDebug("DeviceGUI::closeEvent"); emit closing(); - event->accept(); + event->ignore(); // Don't automatically delete this object - MainWindow::RemoveDeviceSetFSM::removeUI will do it } void DeviceGUI::mousePressEvent(QMouseEvent* event)