1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -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);
ScopeVis::MsgScopeVisAddTrigger *msgAddTrigger = ScopeVis::MsgScopeVisAddTrigger::create(triggerData);
m_scopeVis->getInputMessageQueue()->push(msgAddTrigger);
settingsTriggerAdd(triggerData);
// Add a trace
GLScopeSettings::TraceData traceData;
fillTraceData(traceData);
ScopeVis::MsgScopeVisAddTrace *msgAddTrace = ScopeVis::MsgScopeVisAddTrace::create(traceData);
m_scopeVis->getInputMessageQueue()->push(msgAddTrace);
settingsTraceAdd(traceData);
setEnabled(true);
connect(m_glScope, SIGNAL(sampleRateChanged(int)), this, SLOT(on_scope_sampleRateChanged(int)));