mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-27 06:08:37 -05:00
Prevent active switch from changing mode
This commit is contained in:
parent
02a876272f
commit
a02dbae7d3
@ -365,9 +365,10 @@ void BookmarkView::onTreeActivate( wxTreeEvent& event ) {
|
|||||||
if (tvi) {
|
if (tvi) {
|
||||||
if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_ACTIVE) {
|
if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_ACTIVE) {
|
||||||
if (!tvi->demod->isActive()) {
|
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().getDemodMgr().setActiveDemodulator(tvi->demod,false);
|
||||||
|
wxGetApp().setFrequency(tvi->demod->getFrequency());
|
||||||
nextDemod = tvi->demod;
|
nextDemod = tvi->demod;
|
||||||
}
|
}
|
||||||
} else if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_RECENT) {
|
} else if (tvi->type == TreeViewItem::TREEVIEW_ITEM_TYPE_RECENT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user