The aim() function doesn't check if the model inside QQmlAdaptorModel
is a actually a QAbstractItemModel (it just does a static cast).
So we need to guard it.
Change-Id: I397280ea7e6f81939d4030d0512a3a67877ad94c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>