mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
Packet Modulator: fixed segfault due to wrong order of instructions in GUI constructor
This commit is contained in:
parent
fce03a6494
commit
9ef16315f6
@ -467,11 +467,11 @@ PacketModGUI::PacketModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
|
|||||||
|
|
||||||
connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
|
connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
|
||||||
|
|
||||||
ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum);
|
|
||||||
|
|
||||||
m_spectrumVis = m_packetMod->getSpectrumVis();
|
m_spectrumVis = m_packetMod->getSpectrumVis();
|
||||||
m_spectrumVis->setGLSpectrum(ui->glSpectrum);
|
m_spectrumVis->setGLSpectrum(ui->glSpectrum);
|
||||||
|
|
||||||
|
ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum);
|
||||||
|
|
||||||
// Extra /2 here because SSB?
|
// Extra /2 here because SSB?
|
||||||
ui->glSpectrum->setCenterFrequency(m_settings.m_spectrumRate/4);
|
ui->glSpectrum->setCenterFrequency(m_settings.m_spectrumRate/4);
|
||||||
ui->glSpectrum->setSampleRate(m_settings.m_spectrumRate/2);
|
ui->glSpectrum->setSampleRate(m_settings.m_spectrumRate/2);
|
||||||
|
Loading…
Reference in New Issue
Block a user