SelectionManager Assertion

I’m trying to insert a new audio track with a SelectionManger:

auto tip = te::TrackInsertPoint(nullptr, te::getAllTracks(edit).getLast());
edit.insertNewAudioTrack(tip, &selectionManager);

However, I’m getting an assertion at:

SelectableClass* SelectableClass::findClassFor (const Selectable& s)

It seems to not be able to find a SelectableClass that applies to the object?

You can probably ignore that assertion if you haven’t created any SelectableClass subclasses. We might remove it in future.

It’s there as a check to avoid us forgetting to add or register SelectableClasses for certain Selectable types but if you don’t have any it’s a bit irrelevant.

Maybe I’ll only assert if at least one has been registered.