Fix crash with newer Qt versions
Assign m_internalModel before calling into QSortFilterProxyModel::setSourceModel since that can end up calling filterAcceptsRow
Assign m_internalModel before calling into QSortFilterProxyModel::setSourceModel since that can end up calling filterAcceptsRow