Skip to content

Commit

Permalink
Packet Modulator: fixed segfault due to wrong order of instructions i…
Browse files Browse the repository at this point in the history
…n GUI constructor
  • Loading branch information
f4exb committed Jun 6, 2023
1 parent fce03a6 commit 9ef1631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/channeltx/modpacket/packetmodgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,11 @@ PacketModGUI::PacketModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb

connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));

ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum);

m_spectrumVis = m_packetMod->getSpectrumVis();
m_spectrumVis->setGLSpectrum(ui->glSpectrum);

ui->spectrumGUI->setBuddies(m_spectrumVis, ui->glSpectrum);

// Extra /2 here because SSB?
ui->glSpectrum->setCenterFrequency(m_settings.m_spectrumRate/4);
ui->glSpectrum->setSampleRate(m_settings.m_spectrumRate/2);
Expand Down

0 comments on commit 9ef1631

Please sign in to comment.