Prevent active switch from changing mode

This commit is contained in:
Charles J. Cliffe 2016-12-23 20:07:49 -05:00
parent 02a876272f
commit a02dbae7d3

View File

@ -365,9 +365,10 @@ void BookmarkView::onTreeActivate( wxTreeEvent& event ) {
if (tvi) {
if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_ACTIVE) {
if (!tvi->demod->isActive()) {
wxGetApp().setFrequency(tvi->demod->getFrequency());
wxGetApp().getDemodMgr().setActiveDemodulator(nullptr,true);
wxGetApp().getDemodMgr().setActiveDemodulator(tvi->demod,true);
wxGetApp().getDemodMgr().setActiveDemodulator(tvi->demod,false);
wxGetApp().setFrequency(tvi->demod->getFrequency());
nextDemod = tvi->demod;
}
} else if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_RECENT) {