fix creation of new demodulator when none active

This commit is contained in:
Charles J. Cliffe 2015-02-05 21:40:38 -05:00
parent 9a534087ee
commit fa746b7453
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ void WaterfallCanvas::OnMouseWheelMoved(wxMouseEvent& event) {
void WaterfallCanvas::OnMouseReleased(wxMouseEvent& event) {
InteractiveCanvas::OnMouseReleased(event);
bool isNew = shiftDown
bool isNew = shiftDown || (wxGetApp().getDemodMgr().getLastActiveDemodulator() == NULL)
|| (wxGetApp().getDemodMgr().getLastActiveDemodulator() && !wxGetApp().getDemodMgr().getLastActiveDemodulator()->isActive());
mouseTracker.setVertDragLock(false);