Skip to content
Snippets Groups Projects
Commit 44cfd66d authored by aacuevas's avatar aacuevas
Browse files

Fixed crash selecting RHD options when no board present

parent c6fa32cc
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ BandwidthInterface::~BandwidthInterface()
void BandwidthInterface::labelTextChanged(Label* te)
{
if (!(editor->acquisitionIsActive))
if (!(editor->acquisitionIsActive) && board->foundInputSource())
{
if (te == UpperBandwidthSelection)
{
......@@ -183,7 +183,7 @@ SampleRateInterface::~SampleRateInterface()
void SampleRateInterface::comboBoxChanged(ComboBox* cb)
{
if (!(editor->acquisitionIsActive))
if (!(editor->acquisitionIsActive) && board->foundInputSource())
{
if (cb == rateSelection)
{
......@@ -260,7 +260,7 @@ HeadstageOptionsInterface::~HeadstageOptionsInterface()
void HeadstageOptionsInterface::buttonClicked(Button* button)
{
if (!(editor->acquisitionIsActive))
if (!(editor->acquisitionIsActive) && board->foundInputSource())
{
//std::cout << "Acquisition is not active" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment