1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

Corrected spectrum initialization when set as GUI buddy

This commit is contained in:
f4exb 2020-11-12 18:31:33 +01:00
parent 835aa26902
commit 3e95e2b1a5
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ void GLSpectrumSettings::resetToDefaults()
m_waterfallShare = 0.66;
m_displayCurrent = true;
m_displayWaterfall = true;
m_invertedWaterfall = false;
m_invertedWaterfall = true;
m_displayMaxHold = false;
m_displayHistogram = false;
m_displayGrid = false;
@ -109,7 +109,7 @@ bool GLSpectrumSettings::deserialize(const QByteArray& data)
d.readReal(4, &m_refLevel, 0);
d.readReal(5, &m_powerRange, 100);
d.readBool(6, &m_displayWaterfall, true);
d.readBool(7, &m_invertedWaterfall, false);
d.readBool(7, &m_invertedWaterfall, true);
d.readBool(8, &m_displayMaxHold, false);
d.readBool(9, &m_displayHistogram, false);
d.readS32(10, &m_decay, 1);

View File

@ -75,6 +75,7 @@ void GLSpectrumGUI::setBuddies(SpectrumVis* spectrumVis, GLSpectrum* glSpectrum)
m_glSpectrum = glSpectrum;
m_glSpectrum->setMessageQueueToGUI(&m_messageQueue);
m_spectrumVis->setMessageQueueToGUI(&m_messageQueue);
applyGLSpectrumSettings();
}
void GLSpectrumGUI::resetToDefaults()