mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-10 09:32:25 -04:00
fix creation of new demodulator when none active
This commit is contained in:
parent
9a534087ee
commit
fa746b7453
@ -746,7 +746,7 @@ void WaterfallCanvas::OnMouseWheelMoved(wxMouseEvent& event) {
|
|||||||
void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) {
|
void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) {
|
||||||
InteractiveCanvas::OnMouseReleased(event);
|
InteractiveCanvas::OnMouseReleased(event);
|
||||||
|
|
||||||
bool isNew = shiftDown
|
bool isNew = shiftDown || (wxGetApp().getDemodMgr().getLastActiveDemodulator() == NULL)
|
||||||
|| (wxGetApp().getDemodMgr().getLastActiveDemodulator() && !wxGetApp().getDemodMgr().getLastActiveDemodulator()->isActive());
|
|| (wxGetApp().getDemodMgr().getLastActiveDemodulator() && !wxGetApp().getDemodMgr().getLastActiveDemodulator()->isActive());
|
||||||
|
|
||||||
mouseTracker.setVertDragLock(false);
|
mouseTracker.setVertDragLock(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user