Skip to content

Commit

Permalink
adc: fix bug where all new tools were time
Browse files Browse the repository at this point in the history
Signed-off-by: IonutMuthi <[email protected]>
  • Loading branch information
IonutMuthi authored and adisuciu committed Sep 26, 2024
1 parent ee9f83f commit 77da9aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/adc/src/adcplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ void ADCPlugin::newInstrument(ADCInstrumentType t, AcqTreeNode *root)
connect(root, &AcqTreeNode::deletedChild, dynamic_cast<ADCTimeInstrumentController *>(adc),
&ADCTimeInstrumentController::removeChannel, Qt::QueuedConnection);

connect(ui, &ADCInstrument::requestNewInstrument, this,
[=](ADCInstrumentType t) { newInstrument(t, root); });
connect(ui, &ADCInstrument::requestNewInstrument, this, [=]() { newInstrument(t, root); });

connect(ui, &ADCInstrument::requestDeleteInstrument, this, [=]() {
ToolMenuEntry *t = nullptr;
Expand Down Expand Up @@ -278,8 +277,7 @@ void ADCPlugin::newInstrument(ADCInstrumentType t, AcqTreeNode *root)
connect(root, &AcqTreeNode::deletedChild, dynamic_cast<ADCFFTInstrumentController *>(adc),
&ADCFFTInstrumentController::removeChannel, Qt::QueuedConnection);

connect(ui, &ADCInstrument::requestNewInstrument, this,
[=](ADCInstrumentType t) { newInstrument(t, root); });
connect(ui, &ADCInstrument::requestNewInstrument, this, [=]() { newInstrument(t, root); });

connect(ui, &ADCInstrument::requestDeleteInstrument, this, [=]() {
ToolMenuEntry *t = nullptr;
Expand Down

0 comments on commit 77da9aa

Please sign in to comment.