TableListBox crash following commit

Following this commit, I got some crash in my app

The thing is that using setModel instead of direct assignment call updateContent() which call getNumRows which is probably overriden by my class which inherit from TableListBoxModel which uses data which are not yet constructed.
This will probably happen to lot of people

The fix is simply to not use this in the ctor and call setModel(this) later.

1 Like

Thank you for reporting.

same issue in juce::ListBox FWIW

This should be resolved by this change:

1 Like