Skip to content

Commit 6475576

Browse files
committed
Disable rec buttons when acquisition is active
1 parent fd63a37 commit 6475576

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Source/Processors/Editors/GenericEditor.cpp

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,23 +301,27 @@ void GenericEditor::setDesiredWidth (int width)
301301

302302
void GenericEditor::startRecording()
303303
{
304-
if (channelSelector != 0)
305-
channelSelector->inactivateRecButtons();
304+
//now are disabled on acquisition
305+
// if (channelSelector != 0)
306+
// channelSelector->inactivateRecButtons();
306307
}
307308

308309
void GenericEditor::stopRecording()
309310
{
310-
if (channelSelector != 0)
311-
channelSelector->activateRecButtons();
311+
// if (channelSelector != 0)
312+
// channelSelector->activateRecButtons();
312313
}
313314

314315
void GenericEditor::editorStartAcquisition()
315316
{
316317
startAcquisition();
317318
//std::cout << "GenericEditor received message to start acquisition." << std::endl;
318319

319-
if (channelSelector != 0)
320-
channelSelector->startAcquisition();
320+
if (channelSelector != 0)
321+
{
322+
channelSelector->startAcquisition();
323+
channelSelector->inactivateRecButtons();
324+
}
321325

322326
for (int n = 0; n < parameterEditors.size(); n++)
323327
{
@@ -335,8 +339,11 @@ void GenericEditor::editorStopAcquisition()
335339
{
336340
stopAcquisition();
337341

338-
if (channelSelector != 0)
339-
channelSelector->stopAcquisition();
342+
if (channelSelector != 0)
343+
{
344+
channelSelector->stopAcquisition();
345+
channelSelector->activateRecButtons();
346+
}
340347

341348
for (int n = 0; n < parameterEditors.size(); n++)
342349
{

0 commit comments

Comments
 (0)