1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-24 10:50:29 -05:00

GLScopeGUI: synchronize add trace and add trigger in setBuddies method

This commit is contained in:
f4exb 2021-06-16 00:05:08 +02:00
parent de838e8c30
commit 6221693710

View File

@ -95,12 +95,14 @@ void GLScopeGUI::setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLSc
fillTriggerData(triggerData); fillTriggerData(triggerData);
ScopeVis::MsgScopeVisAddTrigger *msgAddTrigger = ScopeVis::MsgScopeVisAddTrigger::create(triggerData); ScopeVis::MsgScopeVisAddTrigger *msgAddTrigger = ScopeVis::MsgScopeVisAddTrigger::create(triggerData);
m_scopeVis->getInputMessageQueue()->push(msgAddTrigger); m_scopeVis->getInputMessageQueue()->push(msgAddTrigger);
settingsTriggerAdd(triggerData);
// Add a trace // Add a trace
GLScopeSettings::TraceData traceData; GLScopeSettings::TraceData traceData;
fillTraceData(traceData); fillTraceData(traceData);
ScopeVis::MsgScopeVisAddTrace *msgAddTrace = ScopeVis::MsgScopeVisAddTrace::create(traceData); ScopeVis::MsgScopeVisAddTrace *msgAddTrace = ScopeVis::MsgScopeVisAddTrace::create(traceData);
m_scopeVis->getInputMessageQueue()->push(msgAddTrace); m_scopeVis->getInputMessageQueue()->push(msgAddTrace);
settingsTraceAdd(traceData);
setEnabled(true); setEnabled(true);
connect(m_glScope, SIGNAL(sampleRateChanged(int)), this, SLOT(on_scope_sampleRateChanged(int))); connect(m_glScope, SIGNAL(sampleRateChanged(int)), this, SLOT(on_scope_sampleRateChanged(int)));