1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-28 18:58:48 -05:00

DeviceGUI::closeEvent - Don't automatically delete the GUI, as MainWindow::RemoveDeviceSetFSM::removeUI will do it

This commit is contained in:
srcejon 2024-10-10 15:03:24 +01:00
parent 3df1ce20ae
commit 5ac2081195

View File

@ -283,7 +283,7 @@ void DeviceGUI::closeEvent(QCloseEvent *event)
{ {
qDebug("DeviceGUI::closeEvent"); qDebug("DeviceGUI::closeEvent");
emit closing(); emit closing();
event->accept(); event->ignore(); // Don't automatically delete this object - MainWindow::RemoveDeviceSetFSM::removeUI will do it
} }
void DeviceGUI::mousePressEvent(QMouseEvent* event) void DeviceGUI::mousePressEvent(QMouseEvent* event)