From 5b1592598ee088e43f5dfb9be6730c87ff365274 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 9 Dec 2015 01:59:16 +0100 Subject: [PATCH] BFM demod: save mono/stereo toggle --- plugins/channel/bfm/bfmdemodgui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/channel/bfm/bfmdemodgui.cpp b/plugins/channel/bfm/bfmdemodgui.cpp index f12a89a33..136e8301b 100644 --- a/plugins/channel/bfm/bfmdemodgui.cpp +++ b/plugins/channel/bfm/bfmdemodgui.cpp @@ -104,6 +104,7 @@ QByteArray BFMDemodGUI::serialize() const s.writeS32(5, ui->squelch->value()); s.writeU32(7, m_channelMarker.getColor().rgb()); s.writeBlob(8, ui->spectrumGUI->serialize()); + s.writeBool(9, ui->audioStereo->isChecked()); return s.final(); } @@ -122,6 +123,7 @@ bool BFMDemodGUI::deserialize(const QByteArray& data) QByteArray bytetmp; quint32 u32tmp; qint32 tmp; + bool booltmp; blockApplySettings(true); m_channelMarker.blockSignals(true); @@ -151,6 +153,9 @@ bool BFMDemodGUI::deserialize(const QByteArray& data) d.readBlob(8, &bytetmp); ui->spectrumGUI->deserialize(bytetmp); + d.readBool(9, &booltmp, false); + ui->audioStereo->setChecked(booltmp); + blockApplySettings(false); m_channelMarker.blockSignals(false);