-
Mathias Wein authored
The fix for QTBUG-87781 is to recreate an internal mapping in QSortFilterProxyModel::setSourceModel(), and KisResourceModel calls this in the constructor. This leads to KisResourceModel::filterAcceptsRow() being called, which ultimately fetches data via KisResourceQueryMapper::variantFromResourceQuery(). So the latter must not create a temporary KisResourceModel when processing the data role used by filterAcceptsRow(). So only create the temporary model when actually required.
d062760c