From 9bd7ebf07ad46a6d79712128e96a05647365fff9 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Fri, 17 Jul 2015 22:27:38 -0400 Subject: [PATCH] Set raw demod type before bandwidth to prevent crash from previous bw setting --- src/visual/WaterfallCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visual/WaterfallCanvas.cpp b/src/visual/WaterfallCanvas.cpp index 59f7c21..e657a7f 100644 --- a/src/visual/WaterfallCanvas.cpp +++ b/src/visual/WaterfallCanvas.cpp @@ -820,8 +820,8 @@ void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) { demod = wxGetApp().getDemodMgr().newThread(); demod->setFrequency(freq); - demod->setBandwidth(mgr->getLastBandwidth()); demod->setDemodulatorType(mgr->getLastDemodulatorType()); + demod->setBandwidth(mgr->getLastBandwidth()); demod->setSquelchLevel(mgr->getLastSquelchLevel()); demod->setSquelchEnabled(mgr->isLastSquelchEnabled()); demod->setStereo(mgr->isLastStereo());