Skip to content

Commit

Permalink
Remove unreachable code introduced in #50
Browse files Browse the repository at this point in the history
  • Loading branch information
martonmiklos authored and ad3154 committed Dec 12, 2024
1 parent 6c9f38e commit 398bd33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DataMaskRenderAreaComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void DataMaskRenderAreaComponent::mouseUp(const MouseEvent &event)
auto combo = inputListModal->getComboBoxComponent("Input List Combo");
auto comboPopup = combo->getRootMenu();

auto selectedIndex = clickedList->get_value();
auto selectedIndex = -1;

if (clickedList->get_variable_reference() != isobus::NULL_OBJECT_ID)
{
Expand All @@ -200,6 +200,10 @@ void DataMaskRenderAreaComponent::mouseUp(const MouseEvent &event)
}
}
}
else
{
selectedIndex = clickedList->get_value();
}

for (std::uint32_t i = 0; i < clickedList->get_number_children(); i++)
{
Expand Down

0 comments on commit 398bd33

Please sign in to comment.