From a04f84fcc304802a78c58df96978d80485a53d34 Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 10 Oct 2024 15:11:23 +0100 Subject: [PATCH] Adds comment --- sdrgui/device/devicegui.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdrgui/device/devicegui.cpp b/sdrgui/device/devicegui.cpp index 1453ce872..e39240398 100644 --- a/sdrgui/device/devicegui.cpp +++ b/sdrgui/device/devicegui.cpp @@ -44,7 +44,8 @@ DeviceGUI::DeviceGUI(QWidget *parent) : m_contextMenuType(ContextMenuNone), m_resizer(this), m_drag(false), - m_currentDeviceIndex(-1) + m_currentDeviceIndex(-1), + m_channelAddDialog(this) { qDebug("DeviceGUI::DeviceGUI: %p", parent); setWindowFlags(windowFlags() | Qt::FramelessWindowHint); @@ -283,7 +284,7 @@ void DeviceGUI::closeEvent(QCloseEvent *event) { qDebug("DeviceGUI::closeEvent"); emit closing(); - event->ignore(); // Don't automatically delete this object - MainWindow::RemoveDeviceSetFSM::removeUI will do it + event->ignore(); // Don't automatically delete the GUI - MainWindow::RemoveDeviceSetFSM::removeUI will do it } void DeviceGUI::mousePressEvent(QMouseEvent* event) @@ -380,7 +381,8 @@ void DeviceGUI::openMoveToWorkspaceDialog() void DeviceGUI::openAddChannelsDialog() { - m_channelAddDialog.exec(); + //m_channelAddDialog.exec(); + m_channelAddDialog.open(); } void DeviceGUI::showSpectrumHandler()