mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
Channel plugins: use specialized ChannelGUI superclass. Handle GUI lifecycle in MainWindow
This commit is contained in:
@@ -390,7 +390,7 @@ void PacketModGUI::onMenuDialogCalled(const QPoint &p)
|
||||
}
|
||||
|
||||
PacketModGUI::PacketModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget* parent) :
|
||||
RollupWidget(parent),
|
||||
ChannelGUI(parent),
|
||||
ui(new Ui::PacketModGUI),
|
||||
m_pluginAPI(pluginAPI),
|
||||
m_deviceUISet(deviceUISet),
|
||||
@@ -465,7 +465,6 @@ PacketModGUI::PacketModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
|
||||
|
||||
PacketModGUI::~PacketModGUI()
|
||||
{
|
||||
m_deviceUISet->removeTxChannelInstance(this);
|
||||
delete m_packetMod; // TODO: check this: when the GUI closes it has to delete the modulator
|
||||
delete ui;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user