Hello,
I am trying to add an item to a tableListBox component by clicking on a button as follows:
void PlaylistComponent::buttonClicked(Button* button)
{
if (button == &addButton)
{
trackTitles.push_back("Track 3");
tableComponent.updateContent();
}
}
I get the following error right after the button is clicked:
However, when I prefill the trackTitles vector with a few items (at least 4-5 items), it works.
I spent four hours trying to figure this out. This is very frustrating for something simple like this not to work.
Please advise.
Thank you!
Hieu